Skip to content
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

Change onMount/afterUpdate order #3150

Merged
merged 7 commits into from
Jul 3, 2019
Merged

Change onMount/afterUpdate order #3150

merged 7 commits into from
Jul 3, 2019

Conversation

Rich-Harris
Copy link
Member

This is an extension of @colincasey's work in #2752. The more I think about it, the more it seems that onMount should happen before the first afterUpdate, since it's likely to be used for setup work (like ctx = canvas.getContext('2d') or whatever).

The question, of course, is whether that qualifies as a breaking change or a bugfix?

Otherwise it's mostly the same — child onMount/afterUpdate happens before parents, and siblings fire their functions in the natural order. I changed the .reverse() and the .shift(), as it's better to avoid that work if possible.

colincasey and others added 7 commits May 13, 2019 22:43
…ings

* master: (66 commits)
  -> v3.4.3
  always add raw property to text nodes
  flesh out in/out transition tutorial chapter (#2792)
  code style
  fix test
  fix tests
  Fix CRUD example to allow changing input values.
  Fixes #2714
  treat requestAnimationFrame as a noop on the server
  site: actions tutorial: destroy is not required (#2776)
  Allow binding of <details> open
  site: add /faq redirect to GitHub wiki FAQ
  fix case sensitive import name, improve tsconfig
  type declarations for bundled files
  convert everything to TypeScript
  check for unknown props when creating component
  cleanup, improve comments
  typecheck npm script
  workarond for estree-walker related typings conflict
  compile/render-dom and other remaining typings
  ...
…ings

* master: (35 commits)
  Fix overwrite of 'offset' value in reactive statement
  fix slide example
  typos
  update svelte-repl (fixes download button)
  update svelte-repl
  update svelte-repl version
  use better eliza package
  gitignore workers
  add compiler typings to list of published files
  improve typings for animate, easing, transition, motion and internal apis
  update bundler worker
  fix gitignore
  fix types for easing functions
  fix build order
  generate internal-exports file
  update gitignore
  update folder structure - #2790
  bump estree-walker to fix some svelte.walk bugs
  bundle locally
  -> v3.4.4
  ...
@Conduitry
Copy link
Member

I vote bugfix. This new behavior does make more sense, and there's nothing in the docs that indicates what order this stuff happens, right?

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.

None yet

3 participants