Skip to content

[FIX] If loadOptions changes, items are not reloaded #723

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

extremegf
Copy link

Below animation shows the issue:

Recording 2025-02-07 at 15 42 58

If loadOptions change, there is no other way to refresh items then either reload component of change filter and change it back.

To repro without fix:

Merging in the tests/reproductions/itemsNotRefreshed/+page.svelte is not necessary but might be useful.

I don't think this will have any impact on most svelte-select consumers, as this influences cases where loadOptions are passed as a prop. And in this use-cases it is more likely than not that you want the item refresh to happen.

Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-select ❌ Failed (Inspect) Feb 14, 2025 10:48am

This reverts commit e9f3a8f.
@extremegf
Copy link
Author

I've removed the problem reproduction file. Vercel still has a problem which seems unrelated to my change.

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.

1 participant