Use the toggle attribute of the Todo components #5124
Conversation
Is there any precedent in the other tutorials? Should we default to events or callback functions? Or maybe it doesn't matter. We could just remove the |
There are several examples where a custom event dispatcher is used, I haven't found any where they are passing a function as a prop directly. I would prefer either passing the function as a prop or using a custom event dispatcher because it provides semantics to the interface of the todo component. But your solution is fine as well. |
i would prefer removing the |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
2a9f9d7
into
sveltejs:master
Modifies the "Immutable Data" example on the svelte website and removes the
toggle
attribute that was declared. Previously the REPL displayed the following warnings:Before submitting the PR, please make sure you do the following
npm run lint
!)Tests
npm test
oryarn test
)