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
Users might direclty update request.context in upgrade hook which is a wrong usecase.
Two possible solution:
hydrate request.context (reference) after calling hook (more hackable / if non object value assigned makes things bad)
make it a ready only getter (developers know they can't override)
Thanks @sandros94, this gave me some much needed guidance! However, I found that setting the context to an object doesn't work, you have to set specific properties. For example (using `[email protected]`):
Users might direclty update
request.context
in upgrade hook which is a wrong usecase.Two possible solution:
request.context
(reference) after calling hook (more hackable / if non object value assigned makes things bad)Trying to set
request.context
to a new object:Setting a specific property in
request.context
:Originally posted by @travis-r6s in #112 (comment)
The text was updated successfully, but these errors were encountered: