Dhruv Kumar JhaD
Convex Community2y ago
11 replies
Dhruv Kumar Jha

Options for managing non-persistent state

Hello, I am wondering how everyone manages their app state? (Context: next js app with convex and clerk auth)

With convex I don't have to worry about managing most of my state & it's realtime (amazing)
However how do you manage global state that is not related to / stored in the database? Does convex have any helpers for this?

For example: Let's consider we want to support dark+light mode in our app and we don't want to persist this info in convex, how should we do this with convex? are there any examples/tutorials related to this?

Another example could be toggling sidebar - from various different components, how should we go about this?

If possible, I'd prefer not to use any state management lib for this.
Was this page helpful?