Skip to content

How does FireCMS handle state? #141

Answered by fgatti675
kongweiying2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TheAussieStew :)

We don't use any additional library for state management like the ones you mention.
I have used Redux before and I am not a huge fan. There is nothing wrong with it, but I have seen it misused too often. The most common mistake is mistake local state for global state. For example, having the content of a collection as global state, when it is local state to a table component only.

State should be held in the smallest scope possible, and that is how we mostly handle it in FireCMS.
In any case, we do have global state related to different parts of the app, such as the authentication state, or the order of the side panels, the snackbar controller... We implement those by…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kongweiying2
Comment options

Answer selected by kongweiying2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants