Storing global state in admin panel

default discord avatar
sandrowegmann
6 months 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
    6 months ago

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

  • default discord avatar
    sandrowegmann
    6 months 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.