mirror of https://github.com/sveltejs/svelte
Inside flush(), we don't care if there is a current component or not, we just want to save and restore it if there is one. Rather than throwing and catching an error that would happen often, we'll just create another version of get_current_component() that doesn't throw.pull/6920/head
parent
83e9cc5d5d
commit
47f90d0a1f
Loading…
Reference in new issue