We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a case like this...
<List items='{[1, 2, 3]}'/>
...items should never be updated, even if <List> had other properties that were being updated.
items
<List>
The text was updated successfully, but these errors were encountered:
To clarify:
function create_main_fragment(component, ctx) { var list_initial_data = { items: [1, 2, 3] }; var list = new List({ root: component.root, data: list_initial_data }); return { c: function create() { list._fragment.c(); }, m: function mount(target, anchor) { list._mount(target, anchor); }, + p: noop, - p: function update(changed, ctx) { - var list_changes = {}; - list_changes.items = [1, 2, 3]; - list._set(list_changes); - }, u: function unmount() { list._unmount(); }, d: function destroy() { list.destroy(false); } }; }
Sorry, something went wrong.
only update component props if they are dynamic - fixes #1394
6ddfc19
Merge pull request #1401 from sveltejs/gh-1394
b64d730
only update component props if they are dynamic
Successfully merging a pull request may close this issue.
In a case like this...
...
items
should never be updated, even if<List>
had other properties that were being updated.The text was updated successfully, but these errors were encountered: