You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code updates a key called is.good.friend, while a hook simply spreads the modifications object. The result is an object with is.good.friend as an object path.
The text was updated successfully, but these errors were encountered:
stutrek
changed the title
Update hooks break when keys have a ..
Updateing hooks break when keys have a ..
Jan 8, 2020
stutrek
changed the title
Updateing hooks break when keys have a ..
Updating hooks break when keys have a ..
Jan 8, 2020
…hat contain dotted strings (#1130)
* Cleanup: ensure db.folks update hook is removed after unit test completes
* Do not extract nested paths from the object keys contained in middleware hook return values
Fixes#966
* Additional test for #1130
* Nit: trailing space
* Post-merge fixup
* Add explicit check for keys as literal property names on objects before intepreting them as paths
* Alternative approach: push logic down into setByKeyPath function
* Revert "Alternative approach: push logic down into setByKeyPath function"
This reverts commit d610245.
Co-authored-by: dfahlander <david.fahlander@gmail.com>
https://codesandbox.io/s/vigilant-knuth-e7dme
This code updates a key called
is.good.friend
, while a hook simply spreads the modifications object. The result is an object with is.good.friend as an object path.The text was updated successfully, but these errors were encountered: