You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using @angular-redux/form 9.0.1 and when I tried to modularize my application using a reducer registry, I was unable to avoid this error: Typeerror: cannot read property 'getstate' of undefined at rootstore._this.getstate (root-store.js:40) coming from @angular-redux/form when loading any component that had a form with [connect] that was inside of a lazy-loaded module.
I was able to make a workaround in the following form by removing the [connect] altogether and mimicking the behavior like this:
this.subscriptionToForm=this.form.valueChanges.subscribe(value=>{this.myService.dispatchPayload('@@angular-redux/form/FORM_CHANGED',{path: myFormPath, value });});
This seems to work fine and resolves my current issue, but I wanted to mention the issue as you move forward with development on these packages.
The text was updated successfully, but these errors were encountered:
I am currently using @angular-redux/form 9.0.1 and when I tried to modularize my application using a reducer registry, I was unable to avoid this error:
Typeerror: cannot read property 'getstate' of undefined at rootstore._this.getstate (root-store.js:40)
coming from @angular-redux/form when loading any component that had a form with [connect] that was inside of a lazy-loaded module.I was able to make a workaround in the following form by removing the [connect] altogether and mimicking the behavior like this:
This seems to work fine and resolves my current issue, but I wanted to mention the issue as you move forward with development on these packages.
The text was updated successfully, but these errors were encountered: