Adventure-Bot / adventure-bot

Slay a monster! Stab your friend! Adventure Bot!
https://www.adventurebot.io/
6 stars 6 forks source link

Normalized items #9

Open brian-gates opened 2 years ago

brian-gates commented 2 years ago

Problem: full copies of items exist everywhere. Reduce the size and redundancy of state by normalizing items within the character slice.

Success criteria: No Items in the character slice, only ids. No change in behavior.

https://redux.js.org/usage/structuring-reducers/updating-normalized-data

Alternative for consideration: inventory slice.