0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-22 03:47:27 +01:00
svelte/test
Pontus Lundin d4f98fb63a
Call onMount when connected & clean up when disconnected for custom element (#4522)
* call onDestroy when disconnected

* lifecycle hooks and custom elements
- Call onMount in connectedCallback for customElements
- register onMount return values as on_disconnect-callbacks for customElements
- run on_disconnect callbacks in disconnectedCallback

* do not reset on_mount so that it can fire again if reinserted

* simpler isCustomElement & skip extra function call
- pass options.customElement down to mount_component
- remove expensive isCustomElement check
- only call add_render_callback if not customElement

Co-authored-by: Pontus Lundin <pontus.lundin@ica.se>
2021-02-15 22:40:17 +00:00
..
css fix remove of lone :host selectors (#5984) 2021-02-10 22:01:50 -05:00
custom-elements Call onMount when connected & clean up when disconnected for custom element (#4522) 2021-02-15 22:40:17 +00:00
hydration Curly braces linting fixes (#5585) 2020-10-26 13:25:03 -04:00
js Call onMount when connected & clean up when disconnected for custom element (#4522) 2021-02-15 22:40:17 +00:00
motion Use TypeScript in tests (#5433) 2020-09-29 11:19:21 -04:00
parser update css-tree@^1.1.2 (#5958) 2021-02-08 12:05:39 -05:00
preprocess Preprocessor sourcemap support (#5584) 2020-11-19 10:38:41 -08:00
runtime fix extra invalidation with component prop binding to object property (#5890) 2021-02-08 14:22:25 -05:00
server-side-rendering fix extraneous store subscription in SSR (#5929) 2021-01-29 11:07:33 -05:00
sourcemaps Add spaces next to infix operators (#5902) 2021-01-26 20:36:12 -08:00
stats Updated to ESLint config 5.4.0 (#5541) 2020-10-21 15:23:08 -07:00
store fix deriving from RxJS observables (#4300) 2020-01-22 09:19:32 -05:00
validator warn module variables are nonreactive and make them truly nonreactive (#5847) 2021-01-29 15:05:04 -05:00
vars Updated to ESLint config 5.4.0 (#5541) 2020-10-21 15:23:08 -07:00
.eslintrc.json Use TypeScript in tests (#5433) 2020-09-29 11:19:21 -04:00
helpers.ts Updated to ESLint config 5.4.0 (#5541) 2020-10-21 15:23:08 -07:00
setup.js Preprocessor sourcemap support (#5584) 2020-11-19 10:38:41 -08:00
test.ts Use TypeScript in tests (#5433) 2020-09-29 11:19:21 -04:00
tsconfig.json