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

Optimization of Recomposition #97

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Optimization of Recomposition #97

merged 1 commit into from
Sep 22, 2024

Conversation

ogaclejapan
Copy link
Contributor

Within the Composable functions provided by the Query library, recomposition occurs due to changes in the internal state related to data loading. To reduce unnecessary state updates in the UI, we have implemented a RecompositionOptimizer that omits certain state changes based on conditions.

This RecompositionOptimizer can be configured on a per-Composable function basis, and the optimization is enabled by default. If you need to reference the omitted state items in the UI, you can disable the optimization through the configuration settings.

Within the Composable functions provided by the Query library, recomposition occurs due to changes in the internal state
related to data loading. To reduce unnecessary state updates in the UI, we have implemented a RecompositionOptimizer
that omits certain state changes based on conditions.

This RecompositionOptimizer can be configured on a per-Composable function basis, and the optimization is enabled by
default. If you need to reference the omitted state items in the UI, you can disable the optimization through the
configuration settings.
@ogaclejapan ogaclejapan added the enhancement New feature or request label Sep 22, 2024
@ogaclejapan ogaclejapan merged commit f158a96 into main Sep 22, 2024
3 checks passed
@ogaclejapan ogaclejapan deleted the omit-state branch September 22, 2024 00:37
@github-actions github-actions bot mentioned this pull request Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant