Open kettanaito opened 6 years ago
It may be useful to keep the records of created observables in the form's state. This way whenever a field is registered, and prompts to create an observable, it can look up itself (based on fieldPath
) in the form's state, to see if such observable already exists.
This needs to be aligned with the kinds of observables established (rules observer, props observer).
What:
Why:
To prevent memory leaks due to a bunch of observables established.
How: