State Management · Senior · Question 12 of 75

Why shouldn't you put promises, class instances or functions into the Redux store?

Explanation

The store should be plain data that can be logged, saved and replayed. Keep non-serializable objects outside (e.g. in a module or listener) and store ids/serializable snapshots instead.

Further reading

Problem with a question

State Management · Senior · question 12

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz