Non serializable value was detected in an action

The issue here is that on our client, say we update a word like so:

Because when dispatch our updateWord function, if we were to return a Promise object…

…it will be assigned to state’s wordData, which is a violation because state can only take serializable value.

src/features/words/wordSlice.js

A Promise is not serializable, so thus it will give an error like so: