Nav Component: how to update the child nav links on the fly #28708
-
I have a scenario where the children of a nav link/group is not known initially, only when the user expands the node, we will try to get the information using an async call, but unfortunately the onLinkExpandClick doesn't support async handler, is there a way for me to retrieve the items and let Nav component refresh when the call returns? |
Beta Was this translation helpful? Give feedback.
Answered by
alanrenmsft
Aug 8, 2023
Replies: 1 comment
-
turns out I have to use withState for the groups and update the groups in order for it to rerender. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
khmakoto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
turns out I have to use withState for the groups and update the groups in order for it to rerender.