-
Notifications
You must be signed in to change notification settings - Fork 151
upgrade: resize-observer package upgrade for Solid 2.0 #858
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
Merged
davedbase
merged 12 commits into
solidjs-community:next
from
davedbase:update/v2/resize-observer
May 16, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
68b803a
Adapt to Solid 2.0 beta 10
davedbase ecd9285
Merge branch 'next' into update/v2/resize-observer
davedbase 3c03cc5
Updated to beta 12
davedbase db948d2
Added additional test for tracking targets
davedbase 640cbfc
Merge branch 'next' into update/v2/resize-observer
davedbase 32df7bc
Bump to beta 13
davedbase f8627b1
Cleaned up types and utils
davedbase bcf47d8
Added a mirror test for adding targets
davedbase 3ce079c
Observe the amount of calls
davedbase de990ec
Adjust the test to ensure only the remaining div is observed when cha…
davedbase 0fc14fd
Adjusted prev to be stored outside the effect
davedbase da5c3f1
Merge branch 'next' into update/v2/resize-observer
davedbase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| "@solid-primitives/resize-observer": major | ||
| --- | ||
|
|
||
| Migrate to Solid.js v2.0 (beta.13) | ||
|
|
||
| ## Breaking Changes | ||
|
|
||
| **Peer dependencies**: `solid-js@^2.0.0-beta.13` and `@solidjs/web@^2.0.0-beta.13` are now required. | ||
|
|
||
| ### `@solid-primitives/resize-observer` | ||
|
|
||
| - `isServer` now imported from `@solidjs/web` (not `solid-js/web`) | ||
| - `createResizeObserver`: internal `createEffect` converted to the Solid 2.0 split compute/apply pattern | ||
| - `createElementSize`: internal `createEffect` converted to split compute/apply pattern; element cleanup (`unobserve`) is returned from apply phase instead of using `onCleanup` | ||
| - `createElementSize`: `sharedConfig.context` replaced with `sharedConfig.hydrating` for hydration detection | ||
| - `createStore` setter in consuming code now requires a function argument (Solid 2.0 store API change) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.