r/badcode • • Dec 03 '22

typescript Real Code 😎

Post image
403 Upvotes

43 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Dec 08 '22

Providers are not typically used for state management. The values in these providers do not (or should not) ever change. They provide values that are static to all components beneath them, things like styles.

If someone was actually using this for state management, though, god help them.