-
Notifications
You must be signed in to change notification settings - Fork 41
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
Since switching to createRoute (concurrent React), inline styles are sometimes not updated #103
Comments
I was wrong. 3.3.2 has the bug as well. The bug is only related to the usage of Here is a Sandbox reproducing the bug: https://codesandbox.io/s/sweet-mountain-u7docf. You can change the import:
to
to trigger the bug. You can also change the rendering method (switch back to To sum it up:
Maybe related to #72 ? |
OK so I tested again after adding logs everywhere to try and understand the root cause. It would seem that when the bug occurs, the |
## BREAKING CHANGES - Adopts React 18's `useId`, making the library incompatible with React <18 - Switch to `tsup` from `microbundle` for bundling library. No longer exports a UMD version, just CJS and MJS ## Features & Bug fixes - Refactors core functionality to vanilla JS (with a React) adapter, which I think should fix #103 and fix #100 - Added `onExpandedChange` option - Tries to detect if `getToggleProps` is used. If the toggle element ref can be accessed, the `aria-labelledby` attribute will be added to the collapse element - Added `role="region"` to collapse - Updated toggle props to pass the appropriate attributes to the element, whether it's a button or not
🎉 This issue has been resolved in version 3.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGES - Adopts React 18's `useId`, making the library incompatible with React <18 - Switch to `tsup` from `microbundle` for bundling library. No longer exports a UMD version, just CJS and MJS Features & Bug fixes - Refactors core functionality to vanilla JS (with a React) adapter, which I think should fix #103 and fix #100 - Added `onExpandedChange` option - Tries to detect if `getToggleProps` is used. If the toggle element ref can be accessed, the `aria-labelledby` attribute will be added to the collapse element - Added `role="region"` to collapse - Updated toggle props to pass the appropriate attributes to the element, whether it's a button or not
🎉 This issue has been resolved in version 3.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Meant to release at v4@next, but couldn't figure out the magic words for semantic-release 🤷🏻. Can you try testing with |
Hello, have you had a chance to look at the error? Thanks in advance @roginfarrer |
I've briefly looked at it and I can replicate, but I'm not 100% sure why that's happening. I have a major refactor ongoing in #122, and I'm hoping this issue resolves itself |
This PR pins `react-collapsed` to the latest minor version (v3.6.0) that supports React 17. In v3.7.0 and v3.8.0, `react-collapsed` fixed a bug ([Slack thread](https://yext.slack.com/archives/C032CKFARGS/p1671130163844249), [GH issue](roginfarrer/collapsed#103)) that occurs when using it with React 18 by introducing a breaking change where they dropped compatibility with React 16 and 17. v3.7.0+ would break a search experience using collapsible facets with React <18. Since they are not able to support both React 17 and 18 together, it seems preferable to pin to a version that can be used with both, but is a little buggy with React 18, rather than fully functional with React 18, but breaks other React experiences. J=SLAP-2521 TEST=manual See that collapsible facets works as expected on a test-site running on React 17 and that the site running on React 18 still has most functionality, except for the bug described above.
I'm not sure about the React version error, but I was able to reimplement this sandbox with Vite, and everything looked okay with me. Maybe something to do with CRA? |
4.0.0 does not seem to be released on npm |
The library was refactored and is now published under |
Hello, this is the link to a GitHub release but I can't seem to find the library on npm? |
heads up that I'm currently working through some bugs from the refactor right now, so it's not 100% ready. It may work for you, though. |
@adrienharnay can you try this version: |
Hi, I tried the version and everything is going well. When are you planning on deprecating the old package and switching to the new one? |
Hello,
Since switching to React 18 and
react-dom/client
'screateRoute
, when I try to open the Collapse (passingisExpanded: true
togetCollapseProps
) after the first render the inline styles don't get updated: https://gyazo.com/9c552baad3819a12908c12a85288e223. I need to setisExpanded
to false, and then to true for the inline styles to be correct.I don't have this issue with
React.render
(non-concurrent React API).Thanks in advance and have a great day!
The text was updated successfully, but these errors were encountered: