question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

does not work with immutable.js object as state

See original GitHub issue

Due to object destructuring in createStore immutable.js objects are losing some of their methods, e.g. Map loses getIn, setIn etc.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Yevscommented, Oct 27, 2017

No problem, thank you guys for such a great library! 👍

0reactions
matheusmlcommented, Oct 27, 2017

Thank you @Yevs

And we get back to this, I’ll make sure you’re involved.

💯

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using an ImmutableJS Object as the React Component State
state.get is not a function. Below is a minimal example to reproduce the error. Every time the increment button is pushed, the count...
Read more >
does not work with immutable.js object as state #31 - GitHub
In redux it is fine to use immutable because the state is not manipulated directly. And more: if we want to use immutable...
Read more >
Immutable.js - Basics | David Tanzer - Coach Consultant Trainer
When changing the read-only state, you are not allowed to mutate the existing object: You are supposed to create a new object.
Read more >
React, Redux, and Immutable.js: Ingredients for Efficient UI
According to official documentation reducer function in Redux should always emit a new state object using Object.assign(), so why is there need for...
Read more >
How To Use Immutable.js in a React Redux Application
One of the key requirements of redux is that each reducer must be pure. That is given a state and an action it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found