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.

[Example breaking] Unable to save the flow

See original GitHub issue

When I trying to click on the save and restore buttons on this webpage https://reactflow.dev/examples/save-and-restore/ I am not able to see the object being logged into the console.

Also I tried using the example as given here https://github.com/wbkd/react-flow/tree/main/example/src/SaveRestore

I am getting the following error.

localforage.js:1053 Uncaught (in promise) DOMException: Failed to execute 'put' on 'IDBObjectStore': Symbol(react.element) could not be cloned.
    at http://localhost:3000/static/js/vendors~main.chunk.js:43466:33
    at createTransaction (http://localhost:3000/static/js/vendors~main.chunk.js:43219:11)
    at http://localhost:3000/static/js/vendors~main.chunk.js:43451:13

This is the line that is throwing the error var req = store.put(value, key);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TheJustExpercommented, Dec 8, 2021

Currently I am using a React component as the Label and when saving I get this error, the user had probably done the same thing, how would I go about saving it this way.

0reactions
gryslikcommented, Jan 3, 2022

I am getting exactly the same error.

I tried to get around it by doing the following in the save function localforage.setItem(flowKey, JSON.stringify(flow));

and then the below in the load function.

 const flow_data = await localforage.getItem(flowKey);
      const flow = JSON.parse(flow_data);

However then it throws me an error: react-dom.development.js:13413 Uncaught Error: Objects are not valid as a React child (found: object with keys {type, key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting a cloud flow - Power Automate | Microsoft Learn
Save the updated flow, and then click or tap Resubmit to try the run again with the updated configuration. Other failures. If the...
Read more >
Microsoft Power Automate Tutorial - Fixing Broken Connections
Whats up friends!?This week is a quick video to fulfill a Twitter request i had received about making a video on how to...
Read more >
Broken connections in Power Automate - SharePains
Apr 11, 2019 Broken Connections in Flow. Broken connections. When you use connectors in Power Automate you may have seen broken connections.
Read more >
Customize What Happens When a Flow Fails - Salesforce Help
If your flow contains an element that interacts with the Salesforce database—such as an Update Records element or a Submit for Approval core...
Read more >
Fix the InvalidTemplate error in Power Automate - Encodian
Unable to process template language expressions in action" error in ... Use the 'Save As' feature to save your corrupt Flow as a...
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