-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve support for nested producers by allowing drafts to be passed as or in the base state. DETAILS: - Added `state.scope` for knowing when a draft is owned by the current producer or not. - Objects included in the return value of a nested producer are never auto-freezed, because they may contain drafts from a parent producer. - Drafts are always finalized by the producer that created them. - Now that `state.base` can be a draft, we must ensure `state.finalized` is false before creating drafts in the `get` handler. This only affects ES2015+ proxies.
- Loading branch information
1 parent
483a27a
commit 9c53415
Showing
3 changed files
with
70 additions
and
35 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
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