-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep all old values in
__changed__
when using assign/3
instead of…
… only maps (#3392) This commit is a prerequisite to perform nested change tracking of other types of data than maps, eg. lists or tuples. Previously `socket.assigns.__changed__` kept old versions of maps for nested change tracking and `true` for all other types of props. Worth to note that `changed?/2` is simply checking if key is in the `__changed__` map, value itself is not used.
- Loading branch information
Showing
2 changed files
with
27 additions
and
12 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