Facebook Pixel

Should matched profiles go in Redux in DevTinder?

Usually no. Fetched profiles are server state, best handled with React Query or local state. Do not put server data in Redux unless multiple components heavily interact with it in complex ways.

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in Redux vs Context API for the DevTinder React UI

Use Context for auth, React Query or local state for fetched data, local useState for UI flags, and reconsider Redux only if shared state becomes complex and high-frequency. For most DevTinder-style apps, Context is enough.

In Context. The logged-in user is shared across the app but changes rarely, so Context is the perfect fit and built into React. Do not use Redux for this unless auth state becomes truly complex.

Local to the chat screen, or in a dedicated chat store. Live chat is high-frequency and tied to a WebSocket, so keep it out of Context or Redux without careful thought, to avoid unnecessary re-renders across the app.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.