store.resetState
Usage
Signature:
(propertyPaths?: Array<string>) => void;
What does the store resetState method do?
Resets slices of state to their initial state values as desired.
Accepts an array of property paths referencing the desired slices of state to reset.
Performs a total state reset when @@STATE
is present in the property paths array.
Resets state slices referenced by the calling client's selector map when invoked with 0 arguments.
Performs a total state reset when invoked with 0 arguments and @@STATE
is present in the calling client's selector map.
Performs no state reset when a client with no selector map invokes this method with 0 arguments.