You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marciogurka opened this issue
Jun 12, 2023
· 2 comments
Assignees
Labels
bugSomething isn't workingforumIssues from forumpremiumreactReact framework integrationresolvedFixed but not yet released (available in the nightly builds)
I'm defining a custom column renderer. Everything is fine on the first run of the renderer, but when the renderer runs a second time (after the tree node has been expanded), the value of data.record.visibleDescendantCount goes from 0 => 1, but the component never receives the newly passed props. Is this because the component is treated as a template, and not as a standard react component?
If so, how would I render an element that renders differently based on the context provided in arguments of the column renderer? i.e. where it looks one way when visibleDescendantCount = 0, and another when visibleDescendantCount = 1?"
Added a demo with the configuration shared by the user, if you check the video, the console.log shows the correct value, but the component is not correctly updated.
The problem here is that the rendered React component is never made to re-run. It is caused by the fact that config, including columns and the renderer, is contained in state so never changing. I'm looking for a solution.
SergeyMaltsev
changed the title
Updating react component in response to new renderer context not working
[REACT] React component is not rendered correctly on expand / collapse
Jul 10, 2023
bugSomething isn't workingforumIssues from forumpremiumreactReact framework integrationresolvedFixed but not yet released (available in the nightly builds)
Forum post
"Hey there!
I'm defining a custom column renderer. Everything is fine on the first run of the renderer, but when the renderer runs a second time (after the tree node has been expanded), the value of data.record.visibleDescendantCount goes from 0 => 1, but the component never receives the newly passed props. Is this because the component is treated as a template, and not as a standard react component?
If so, how would I render an element that renders differently based on the context provided in arguments of the column renderer? i.e. where it looks one way when visibleDescendantCount = 0, and another when visibleDescendantCount = 1?"
Added a demo with the configuration shared by the user, if you check the video, the console.log shows the correct value, but the component is not correctly updated.
simple.zip
Bryntum.Scheduler.-.Simple.demo.React.-.12.June.2023.mp4
The text was updated successfully, but these errors were encountered: