Jason Rooney

Results 32 comments of Jason Rooney

This is one thing I'd really appreciate clarified in the docs: mapStores. I haven't had a chance to test it yet, but since the entire store is a computed property,...

> > I would assume that any modification of the store would result in re-rendering of all components subscribed to the store through mapStores > > I don't think this...

I think you should be able to keep the composition API store structure consistent with the options API by doing the following: ```ts export const useAppStore = defineStore('app', () =>...

One more thing to keep in mind: If you use computed to return values from mapStores, you need to set the return type to `DeepReadonly` for it to work, otherwise...

One more thing: I can't seem to figure out how to use getters when defining the store using composition. The following doesn't seem to be accessible using mapState: ![image](https://user-images.githubusercontent.com/36086006/146840690-bf7ca526-52a8-4899-b2c4-862be356c42c.png)

I did run into some issues when it came to writing a store using composition. I understand that a lint rule is one way to solve this, but would it...

> You're probably able to solve this by adding a classRegex option to the settings. I did this for .njk files and just inserted the same regex as is used...

As far as I can tell, many strict checks fail to execute in svelte files. Latest Webstorm and plugin. Failure to catch: strictFunctionTypes strictNullChecks strictPropertyInitialization Unfortunately, I currently have to...

As a hacky workaround you can manually trigger the validation after form initialization: ```ts ngOnInit() { this.formGroup = new FormGroup(...etc); ... setTimeout( () => { this.formGroup['myAsyncValidatedControl'].updateValueAndValidity(); }); }

Ran into the same thing as well. Thankfully, I'm already using stores and can sidestep the issue with manual subscriptions, but I'm a bit leery of overusing reactive statements now...