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

How to force update data #55

Open
d07RiV opened this issue May 13, 2018 · 1 comment
Open

How to force update data #55

d07RiV opened this issue May 13, 2018 · 1 comment

Comments

@d07RiV
Copy link

d07RiV commented May 13, 2018

I'm using this to display mutable data, but when the data changes there is no way to force the inspector to show new values. If I collapse/expand the nodes, they update, but I want to show the changes immediately.

In my case, the object is linked to the entire app state, so cloning it is infeasible.

@kraenhansen
Copy link
Collaborator

kraenhansen commented Mar 13, 2019

Did you solve this? I've created a small example that shows how the ObjectInspector can be wrapped in a component that you manually forceUpdate when the object updates https://codesandbox.io/s/zk6lo7m473 .. and instead of passing the object, we pass a shallow copy to trick the ObjectInspector into updating.

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

No branches or pull requests

3 participants