svecosystem / runed

Magical utilities for your Svelte applications (WIP)
https://runed.dev
MIT License
461 stars 23 forks source link

Fix Watcher #47

Closed abdel-17 closed 3 months ago

abdel-17 commented 4 months ago

This PR fixes a minor bug with watchers that receive an array getter.

watch(
    () => [1, 2, 3],
    (value, previous) => {
        // ^ number[] | undefined
        // but this is actually an array of undefined values.
    },
)
changeset-bot[bot] commented 4 months ago

⚠️ No Changeset found

Latest commit: 4ff4f7155f41624f820303824d9f827f076ab64d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 4 months ago
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
runed ✅ Ready (View Log) Visit Preview 4ff4f7155f41624f820303824d9f827f076ab64d
abdel-17 commented 4 months ago

If #48 gets merged, we won't need this.