-
-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hooks are passed as options to the Immer class. onAssign(state, prop, value) Called for every property assigned to by a producer onDelete(state, prop) Called for every property deleted by a producer onCopy(state) Called whenever a copy becomes finalized These hooks are passed an `ImmerState` object. (defined at the end of "src/index.d.ts") The `state` is guaranteed to be both modified and finalized if ever passed to a hook.
- Loading branch information
1 parent
f36d329
commit 7f50364
Showing
2 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters