trellisorg / platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NgRx on SSR throws error when `strictStateSerializability` is set to `true`

exequiel09 opened this issue · comments

I think it's because the rehydration logic uses Set instead of plain old Array.

Error when running on SSR:
Screen Shot 2022-02-18 at 4 14 04 PM

Potential source of issue:

slices: new Set<string>([...state.slices, ...slices]),

The issue is gone when I set strictStateSerializability to false

Sorry I just saw this! I will fix it and release an update.

Thanks! Will try it soon 🙏

Works like a charm @yharaskrik 🎊 Thanks 💯

You are welcome!