Expose getSelectionKeys
from new ./<internals | helpers | advanced>
package entry-point.
#275
Labels
enhancement
New feature or request
I am writing a custom React reducer hook that allows for firing callbacks when an event produces a matched state. It allows for passing a TS pattern. The gist of it to facilitate associating side effects with actions through a useEffect abstraction such that the reducer itself remains side effect free. Basic example;
I'd like to add an internal implementation detail where the callback only fires on changes to the specific properties referenced in the pattern. Otherwise, as the state grows, a lot may fire the callback in this hook as any reducer result that returns a new object reference can pass through the pattern. This package's internal helper
getSelectionKeys
seem to be the exact solution I am looking for.Exposing this through an additional entry point may prove useful for advanced usage, like the occasional abstraction.
Or is there other ways to achieve this with the functionality already exposed?
The text was updated successfully, but these errors were encountered: