-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Since the user is provided as a parameter to the HoC, the user is bound to the "instance" of the Provider component that's returned by the withLDProvider HoC. That means, any time the user sign in status changes in our app, we must create a new wrapped Provider component, which will re-instantiate the entire DOM that's beneath the Provider.
Instead of using a HoC, I'm curious why we can't just provide at least the User via props to the Provider component, and have the Provider re-initialize if the User changes.
Metadata
Metadata
Assignees
Labels
No labels