Actions.updateNodeAttributes doesn't rerender? #489
Unanswered
MythicPalette
asked this question in
Q&A
Replies: 1 comment
-
Ok, I found a workaround. I pass I feel like having a change listener specifically for the node itself would have been slightly better. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
So, I'm working on a project. I added a button to the tab via
onRenderTab
to toggle information in a component.Expectation:
Button on the tab should change a config value (showAddress) and then rerender the node.
Observation:
Button on tab changes config value (showAddress) but the node does not visually update. Refreshing the page is required to see the changed value.
Troubleshooting Performed:
I've used
console.log('x')
to trace what is and is not called and when. My code to update the config is run when expected, however, I have noted that thefactory
function is not run again until I either refresh the page, relaunch Electron, or force a rerender by resizing something. Beyond tracing and verifying that it is, in fact, out of my control as I currently understand it, I don't believe there is more I can do without forcing the entire layout to refresh.Any help solving this or forcing a rerender of the node would be much appreciated.
Relevant Code:
Beta Was this translation helpful? Give feedback.
All reactions