-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnderlineNav2 children changes not reflected #4105
Comments
Here's a short repro vid underline-nav-short-video.mov |
Hi @jeffwilcox 👋🏻 Thanks for filing this. It sounds like you've been able to work around this for now, but if that changes please let us know. @broccolinisoup when you're back from vacation, curious if you can think of any recent changes to |
Hello @jeffwilcox 👋 Sorry for a very late response! I can confirm that the behaviour you are seeing is due to design and it is unfortunate not to be able use the component with the traditional React mindset 😢 I am now thinking maybe we can tweak this behaviour since you are experiencing an issue. 🤔 The component actually gets re-rendered when the state changes, i.e. when the number of the children is changed, but it doesn't update the final list that makes up the inline and menu items and this is something we had to sacrifice to accomodate one of the overflow features of UnderlineNav. We only update the list and menu items when resize is triggered. Could you point me the code where this behaviour is happening? I'd like to understand the use case better and see if we can accomodate it. Thank you 🙏 |
Cool, appreciate the response in any form! ... the code is not pretty, that's for sure, but I think I could point you at a few examples. It's typically in a few rare spaces where we light up additional items only for administrators / feature flagged users / members of a resource which general users may not, yet that state is usually being loaded async. One change at a cost of responsiveness we've considered is waiting to have answers on those flags before rendering the parent component that contains UnderlineNav2. Since the project is half open source and half in the Microsoft internal EMU instance (I'm a Microsoftie), while you should have creds for it, I am definitely not expecting any support beyond the response here same as any oss participant. |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Description
For a long time, we've been using the original
UnderlineNav
where state would dictate the visible underlined items, to essentially lightup a few additional items for administrators, etc.Recently, we noticed this regressed, but haven't worried about it too much, since with cached state and other items, a refresh of the page, or if the component tree shifts enough, would fix the glitch.
Any chance this is as expected? At least today, this all behaves differently than basic React lists, for example... it's possible this is a regression in the "new" UnderlineNav, or, maybe related to some of the changes such as #3559 ?
Steps to reproduce
<ul />
is also shown to observe.Version
v.36.5.0
Browser
Edge
The text was updated successfully, but these errors were encountered: