Skip to content
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

Performance difference between tr() and tr(context:context) #633

Open
cyb9701 opened this issue Nov 29, 2023 · 0 comments
Open

Performance difference between tr() and tr(context:context) #633

cyb9701 opened this issue Nov 29, 2023 · 0 comments

Comments

@cyb9701
Copy link

cyb9701 commented Nov 29, 2023

I am using .tr(context: context) to change the widget immediately after changing the language.

What I'm curious about here is that if I enter the context parameter, it will be re-rendered when the state changes like setState, so I wonder if there is a waste of resources compared to using the general .tr() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant