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
{{ message }}
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
I think this was mentioned before, but in my opinion it's still a bug.
When u reload ur page while using sessionStorage the ngForms object is always empty and getNgForm will always return null.
And that's because
akita-ng-forms-manager/projects/datorama/akita-ng-forms-manager/src/lib/forms-manager.ts
Line 128 in f9684b8
evaluates to true, since there is initial data in the session storage and
akita-ng-forms-manager/projects/datorama/akita-ng-forms-manager/src/lib/forms-manager.ts
Lines 132 to 138 in f9684b8
is never reached.
Maybe changing it to something like
if(!this.ngForms[formName]) { this.storeFormInstance(formName, form); }
might fix that issue.
Cheers,
Kristof
The text was updated successfully, but these errors were encountered: