-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Deprecate the "update" aspect of context hooks #5
Conversation
Context hooks must now always modify the context in place. The API is deprecated accordingly (backward compatible). Issue-4: #4
@bswck if you want to have a look :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pawamoy How about adding tests with the deprecated approach verifying that the warning is raised?
Thanks for the review @sisp, done 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👌 I have only two minor questions.
Context hooks must now always modify the context in place. The API is deprecated accordingly (backward compatible).
Issue-4: #4