Skip to content

fix: merge class in classList to avoid conflict between them#182

Merged
ryansolid merged 1 commit intosolidjs:mainfrom
100terres:fix-181-conflict-between-external-reactive-class-prop-and-internal-class-list-prop-of-a-link-and-nav-link-components
Oct 16, 2022
Merged

fix: merge class in classList to avoid conflict between them#182
ryansolid merged 1 commit intosolidjs:mainfrom
100terres:fix-181-conflict-between-external-reactive-class-prop-and-internal-class-list-prop-of-a-link-and-nav-link-components

Conversation

@100terres
Copy link
Contributor

fix #181

Using reactive class can have unexpected behavior when used in combination with a classList.

fix #181

Using reactive class can have unexpected behavior when used in combination with a classList.
@ryansolid ryansolid merged commit 528a2dc into solidjs:main Oct 16, 2022
Brendan-csel pushed a commit to cselnz/solid-router that referenced this pull request Oct 18, 2022
…#182)

fix solidjs#181

Using reactive class can have unexpected behavior when used in combination with a classList.
ryansolid pushed a commit that referenced this pull request Nov 21, 2022
* fix: merge class in classList to avoid conflict between them (#182)

fix #181

Using reactive class can have unexpected behavior when used in combination with a classList.

* Support for blocking navigation (onBeforeLeave hook)

* useBeforeLeave - allow retry without forcing

* Use Set to clean up leave handlers

* useBeforeLeave needs "from" (after real-world testing)

* Shink if to boolean guard style

* Refactor BeforeLeave to be Router instance specific

* Previous refactor allows BeforeLeave to provide full Location from router (and reduce work for integrations)

* Exposing whole router context to BeforeLeave seems leaky

* Retrying BeforeLeave must ignore next confirm (could be from an async event)

Co-authored-by: Gab <gab@100terres.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conflict between external reactive class prop and internal classList prop of A, Link and NavLink components

2 participants