-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
fix: ensure SvelteDate cached methods have correct reactive context #14525
Conversation
🦋 Changeset detectedLatest commit: 8d59b02 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
preview: https://svelte-dev-git-preview-svelte-14525-svelte.vercel.app/ this is an automated message |
packages/svelte/src/internal/client/dom/elements/bindings/shared.js
Outdated
Show resolved
Hide resolved
…ed.js Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
Not sure if anyone will see this, but this change has caused a rather severe performance bug in my library, not sure if this affects anyone else but it could be considered breaking as the REPL basically dies if the console is closed (infinite loop, it seems like) I'm sure there must be something I'm doing that is unorthodox but from version 3.0.0, up until version 5.5.2 there was no such issue. If anyone knows how to resolve, please let me know ... otherwise if I figure it out I'll drop the answer back in here. 🙏 |
ah, it could be! I think based on your comment and the commit you shared, it is possibly because I have a Thanks @paoloricciuti this gives me a nice direction to follow up 🙏 |
alternative to #14512 — instead of using the nearest parent effect, we use whichever reaction was active when the instance was created
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.packages/svelte/src
, add a changeset (npx changeset
).Tests and linting
pnpm test
and lint the project withpnpm lint