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.

fromJSON only work once

See original GitHub issue

Hi, I have import functionality in my app which is based on graph.fromJSON. The thing is that it doesn’t work after the first time, when I do import first time everything works fine, but then it doesn’t react. I’m using joint with React.js, I found workaround to use useMemo and update graph instance every-time user hits import

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rubenyeghikyan-highwaycommented, Jan 11, 2022

UPDATE: Turned out it was Redux issue, when state is changed, I didn’t clean (bring back to initial) state afterwards, so when I was trying to do 2nd, 3rd time state was not changed so callback was not triggered. Turned out pretty dumb mistake actually, my bad

0reactions
kumilinguscommented, Jan 10, 2022

No problem. Feel free to reopen the issue again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rjson::fromJSON returns only the first item - Stack Overflow
I tried rjson::fromJSON, but it reads only the first item. Is there a trick that I'm missing?
Read more >
fromJSON: Convert R objects to/from JSON in jsonlite - Rdrr.io
These functions are used to convert between JSON data and R objects. The toJSON() and fromJSON() functions use a class based mapping, ...
Read more >
Read/Write JSON Files with Node.js | heynode.com
But reading JSON files with require has its downsides. The file will only be read once; requiring it again returns the cached data...
Read more >
Extracting data from JSON - Amazon Athena
To extract the scalar value from the JSON string, use the json_extract_scalar function. It is similar to json_extract , but returns only scalar...
Read more >
Power Query JSON connector - Microsoft Learn
To load a JSON file from the web, select the Web connector, enter the web address of the file, and follow any credential...
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