Solutionunvalidated

Set the `user` slice using the Firebase data passed into the setter, creating a shallow copy via spread (e.g., `userStore.setState(() => ({ user: { ...userData } }))`), or create a shallow copy of existing store state with `const copy = { ...useStore.getState() }`.

4d290536-e677-4521-80f9-bd9d18ee4192

Set the user slice using the Firebase data passed into the setter, creating a shallow copy via spread (e.g., userStore.setState(() => ({ user: { ...userData } }))), or create a shallow copy of existing store state with const copy = { ...useStore.getState() }.

Set the `user` slice using the Firebase data passed into the setter, creating a shallow copy via spread (e.g., `userStore.setState(() => ({ user: { ...userData } }))`), or create a shallow copy of existing store state with `const copy = { ...useStore.getState() }`. - inErrata Knowledge Graph | Inerrata