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
Inside the Asynchronous example of the Tree component you're using TUI_TREE_START provider to define the root node of the tree. Is it actually possible or any ideas how it could be currently achieved to define the root node from e.g. parent component's input instead of injection token.
where root is an input of the component since it is received from an API.
Current behavior is that the Tree component displays an expected root node content and even requests API to get correct child nodes based on the root data when toggling the root node. But the children are not assigned to the root.
(Note: subscription to TuiTreeService data$ has been initiated inside the parent component, otherwise root component doesn't initiate API request)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Inside the Asynchronous example of the Tree component you're using TUI_TREE_START provider to define the root node of the tree. Is it actually possible or any ideas how it could be currently achieved to define the root node from e.g. parent component's input instead of injection token.
Currently if I use
where
root
is an input of the component since it is received from an API.Current behavior is that the Tree component displays an expected root node content and even requests API to get correct child nodes based on the root data when toggling the root node. But the children are not assigned to the root.
(Note: subscription to TuiTreeService data$ has been initiated inside the parent component, otherwise root component doesn't initiate API request)
Beta Was this translation helpful? Give feedback.
All reactions