-
Notifications
You must be signed in to change notification settings - Fork 45
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
Watermark rendering is not reactive #515
Comments
Thanks for the report. While I appreciate this is certainly a bug that I will get around to fixing at some point I believe this problem can be circumvented using some external state (state libraries) or passing some information down through a |
I've just tried it using a Context, seems to work: I am looking forward to a proper fix, but in the meantime this context workaround could be used. Thanks! |
Describe the bug
The watermark component is only rendered once and doesn't get rerendered even if the state that it uses gets updated.
To Reproduce
https://codesandbox.io/p/sandbox/sad-sound-3d4mt6
Steps to reproduce the behavior:
Expected behavior
The value in the watermark gets updated and matches the one above it.
Actual behavior
The content of the watermark stays intact.
Additional context
I want to have a localized text in the watermark that should change when the user changes the app language.
The text was updated successfully, but these errors were encountered: