Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha 2 results of autotrack selectors can't be dispatched as object into redux #620

Open
kristfal opened this issue Aug 7, 2023 · 1 comment

Comments

@kristfal
Copy link

kristfal commented Aug 7, 2023

Hey,

we just ran into an issue as follows:

  1. Selector A uses autotrack memoization and returns an object
  2. A thunk uses the result of that selector and dispatches that object into redux, which is in turn consumed by a different autotrack selector

-> Crash

Workaround: Deep clone / JSON.stringify(JSON.parse()) object prior to dispatch.

@markerikson
Copy link
Contributor

Thanks for the report, but we could really use a reproduction. Could you record a Replay ( https://replay.io/record-bugs ) and share that link here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants