Repository navigation
fix: flatten providers for large state trees #7441
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
Merged
FarhanAliRaza
merged 23 commits into
reflex-dev:main
from
harsh21234i:harsh21234i-fix-large-state-tree
Oct 15, 2026
Merged
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
dbcefc2
fix: reduce client state provider nesting
harsh21234i 422610f
fix: avoid copying all client substates per delta
harsh21234i ab5f028
fix: flatten large state provider trees
harsh21234i ef50437
fix: address state provider review feedback
harsh21234i 8543148
docs: add PR 7441 performance news fragment
harsh21234i 8510eca
docs: add reflex package performance news fragment
harsh21234i 6cd23f8
docs: use valid orphan news fragment name
harsh21234i 4e9f746
fix: preserve legacy state context reads
harsh21234i fa529f8
Merge main into large state tree PR
harsh21234i 2ec065b
fix: keep legacy state context reads compatible
harsh21234i 009ca89
Fix compiler pre-commit checks for legacy context rewrite
masenf 6b9819f
Merge main into flat state provider PR
masenf d8555c1
Merge branch 'main' into harsh21234i-fix-large-state-tree
harsh21234i 543b086
Install greenlet in legacy playground check
harsh21234i ef580fe
Address PR 7441 review feedback
harsh21234i c84ded2
Fix remaining PR 7441 review findings
harsh21234i 7a9cbeb
Fix legacy state read scanning and rewriting
harsh21234i 6f0117c
fix: remove legacy StateContexts rewriter
FarhanAliRaza f534712
chore: drop breaking fragment for internal StateContexts removal
FarhanAliRaza 1455221
fix: address review findings on the shared state store
FarhanAliRaza 99f9ed8
test: subscribe through useStateContext in the store test
FarhanAliRaza 62cffad
refactor: seed the state store from its argument
FarhanAliRaza 3084bc4
fix: merge new default fields into live substates on hot reload
FarhanAliRaza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Use one shared state-store context with per-substate subscriptions to keep client and server render trees shallow for apps with many state subclasses. |
1 change: 1 addition & 0 deletions
1
packages/reflex-base/news/+large-state-provider-tree.performance.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Use one shared state-store context with per-substate subscriptions to keep client and server render trees shallow for apps with many state subclasses. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.