Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

oncreate on component is not called on _error page #526

Closed
johanalkstal opened this issue Dec 4, 2018 · 1 comment
Closed

oncreate on component is not called on _error page #526

johanalkstal opened this issue Dec 4, 2018 · 1 comment

Comments

@johanalkstal
Copy link

Demonstrated by this CodeSandbox,

https://codesandbox.io/s/8l7jxnopvj

  • On start page you will get an alert created on the Nav component oncreate method.
  • Enter a gibberish url to get the _error page loaded.
  • No alert is displayed because oncreate was never called.

How this affects our application is that our Nav component doesn't work on our 404 page causing mobile users unable to navigate away from that page, because the click method bound to the hamburger menu doesn't execute.

@Conduitry
Copy link
Member

I believe this was fixed (albeit for Svelte 3) in #620.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants