Closed paoloricciuti closed 7 months ago
Latest commit: 2a57bf4851c70cd143413027d47fdebac88b6857
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Name | Link |
---|---|
Latest commit | 2a57bf4851c70cd143413027d47fdebac88b6857 |
Latest deploy log | https://app.netlify.com/sites/sveltekit-search-params/deploys/65a867e9870e1d0008807021 |
Deploy Preview | https://deploy-preview-64--sveltekit-search-params.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
The project has introduced a new feature that allows for more nuanced state management in SvelteKit applications. It focuses on handling and comparing complex query parameters with custom equality functions to prevent unnecessary reactivity. This feature is integrated into the application's UI and thoroughly tested to ensure that changes in complex objects and arrays do not trigger multiple reactivity updates unless necessary.
File Path | Change Summary |
---|---|
.changeset/brave-waves-dance.md |
Introduced sveltekit-search-params with equalityFn option. |
README.md |
Request to summarize diff in specified format was declined. |
playground/src/routes/+page.svelte , playground/src/routes/equalityFn/+page.svelte , playground/src/routes/queryparameters/+page.svelte |
Added variables and reactive statements for tracking changes; updated UI to display changes. |
src/lib/sveltekit-search-params.ts |
Modified StoreOptions to include equalityFn ; added isComplexEqual function; corrected ssp object type; updated queryParameters and queryParam functions. |
tests/index.test.ts |
Updated tests to reflect new features and ensure correct reactivity with complex objects. |
🐇✨ In the code's green field, under the byte's bright sun, A rabbit hopped forth, for the changes were done. With each query param, so uniquely compared, "No excess reactivity!" it joyfully declared. 🎉 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
equalityFn
option for handling complex objects and arrays in search parameters.Enhancements
Tests
equalityFn
feature.