79f0ccb6895a484c631d7a758523958a0bb125ba
The useLayoutOptions cleanup effect was unconditionally resetting the layout store on unmount. During page transitions, React runs the new page's render (which sets the store) before the old page's cleanup effect fires. The unconditional reset would clobber the new page's options, causing showFAB to be wiped. Now the cleanup only resets if the store still holds this component's options, preventing it from interfering with the incoming page.
Description
Languages
TypeScript
95.7%
Java
1.5%
JavaScript
0.9%
Swift
0.9%
CSS
0.5%
Other
0.4%