Closed PesceJonathan closed 5 months ago
@chrissainty it would be great if you could take a look at this PR. It's just a small change but it has a big impact.
@PesceJonathan @heckradr This can't just be removed. It was added due to the enormous quantity of re-renders that can happen in different use cases. This was causing perf issues for people.
I'm happy to look at other solutions that can fix the problems for everyone. I'm going to close this for now as it's not the answer right now.
Fix for the following issue.
Essentially, set title stopped working because the title is used as part of the child content for the FocusTrap component, where the FocusTrap is set to never re-render. This essentially means that its children never re-render, leading to the title never being set. You can see examples and more in the issue.
The fix just allows for the focus trap to re-render.