-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(globals): Use shallow copy to update the globals.params / $state.…
…params object Previously, the `globals.params` object was updated using a deep copy. This causes problems when object-type parameter values aren't cloneable. Now, the parameter values are copied to the `globals.params` object using a shallow copy, i.e., `Object.assign`. This is consistent with parameter handling in the `PathNode` code also. If this commit is causing problems, it is likely that app code is mutating the existing object parameters and then calling `state.go` with the mutated parameters. Recommend making a clone of the params before calling `state.go`. Closes #74
- Loading branch information
1 parent
2f1ae9a
commit e883afc
Showing
3 changed files
with
23 additions
and
8 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