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.

Possibility to set custom node types dynamically from state

See original GitHub issue

Hi,

I would like to ask for posssibility to set nodeTypes dynamically via useState update. We have configuration of node types in server JSON, application sends request for this JSON, parse him and creates dynamic node types. Now we need to update node types in ReactFlow component, otherwise we are getting the following error

Node type "xx" not found. Using fallback type "default".

Thank you

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ElyesBenCheikh1commented, Mar 30, 2022

hi, i actually resolved the problem using your answer to the previous question. Thank you, i really apreciate your work.

1reaction
mabezdekcommented, Nov 11, 2021

Hey @moklick you probably safed my life! It works! Thank you so much, this library is awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Nodes Guide
Custom Nodes. A powerful feature of React Flow is the ability to add custom nodes. Within your custom nodes you can render everything...
Read more >
Custom nodes with REACTFLOW; saving additional data to ...
I am looking to create a custom node where after creation, the user can enter in information to the node and save /...
Read more >
Render dynamic content in Node.js using templates
In this article, we will see how we can render the front-end using Node.js which is very helpful to display static or dynamic...
Read more >
Nodes
The easiest way to define custom nodes is, by passing them as template slots. Your custom node-types are dynamically resolved to slot-names, meaning...
Read more >
Use Dynamic Entities for Customized Interactions | Alexa ...
Dynamic entities are used to augment your skill's predefined slot type in the interaction model by allowing your skill to dynamically create new...
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