Skip to content

fix: reorder Provider and PersistGate nesting in main.tsx - #417

Closed
saurabhhhcodes wants to merge 1 commit into
pooranjoyb:masterfrom
saurabhhhcodes:fix/popShop-batch-7
Closed

fix: reorder Provider and PersistGate nesting in main.tsx#417
saurabhhhcodes wants to merge 1 commit into
pooranjoyb:masterfrom
saurabhhhcodes:fix/popShop-batch-7

Conversation

@saurabhhhcodes

Copy link
Copy Markdown

Bug Fixed

PersistGate was wrapping Provider instead of the other way around. PersistGate must be a child of Provider so the Redux store context is available during state rehydration. The incorrect ordering could cause the app to render before persisted state is restored, defeating the purpose of PersistGate.

Changes

  • Swapped nesting order so <Provider> wraps <PersistGate>

PersistGate must be a child of Provider so the Redux store context is
available during state rehydration. The incorrect ordering could cause
the app to render before persisted state is restored.
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pop-shop Ready Ready Preview, Comment Jul 27, 2026 6:03am

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

Successfully merging this pull request may close these issues.

2 participants