Storing global state in admin panel

default discord avatar
Sandro Wegmann
2 weeks ago
2

I'd like to use a global state library such as redux or jotai within the admin panel. The goal is to persist specific settings across all views, without saving them to the database. Is this possible?

  • default discord avatar
    ibrahem
    2 weeks ago

    you can use config.providers if your state manager has a provider

  • default discord avatar
    Sandro Wegmann
    2 weeks ago

    Ah yep, guess that's it. I'll experiment a bit, thanks! 🙂

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.