Closed adrianriepl closed 3 years ago
When calling the methods formsManager.clear() or formsManager.destroy() without parameters the existing initial values are not being cleared.
formsManager.clear()
formsManager.destroy()
Calling formsManager.clear() or formsManager.destroy() should also clear the Map of the initial values (initialValues$$).
Map
initialValues$$
So you don't have to call removeInitialValue(name) (is actually private) for each set initial value.
removeInitialValue(name)
Do u want to create a PR?
Yes, I can create a PR :thumbsup:
I'm submitting a...
Current behavior
When calling the methods
formsManager.clear()
orformsManager.destroy()
without parameters the existing initial values are not being cleared.Expected behavior
Calling
formsManager.clear()
orformsManager.destroy()
should also clear theMap
of the initial values (initialValues$$
).What is the motivation / use case for changing the behavior?
So you don't have to call
removeInitialValue(name)
(is actually private) for each set initial value.