Small improvements 🎣
Add ability to use wildcard paths with array mutations 👩🏻🚀
You can use the special array setters with paths with wildcards now as well.
Depreciate wildcard setter from empty object 🐚
Before you could have a state prop with an empty object, that would enable wildcard setters:
state: { pokeDex: {} }
// was the same as
state: { pokeDex: { '*': null } }
You did not have to specify '*'
inside the pokeDex to enable wildcard setters.
But since this method without the '*'
was not really documented; had bugs; was complicating the codebase; it's better to streamline and be explicit about where wildcard setters can be used in the state; etc. I have decided to depreciated this.
Going forward, please add the '*'
prop to objects you want to enable wildcard setters for.
Several bug fixes 🦎
Enjoy 🏅