Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

preload doesn't work in root page (src/routes/index.html) after visiting a 404 #94

Closed
sgametrio opened this issue Oct 11, 2018 · 1 comment

Comments

@sgametrio
Copy link

Issue description

Navigating on root page (source at src/routes/index.html), which loads data on preload, doesn't load data (warning <Index> was created without expected data property) only after visiting a 404 page.

How to reproduce

  • Clone repo
  • npm install
  • npm run dev
  • Navigate to about route (which return 404) and click on Home to see that data is not loaded.
    Try instead to navigate to about and then blog: data is loaded there even if blog and /index.html have the same logic.
@sgametrio sgametrio changed the title preload doesn't work in root page (src/routes/index.html) after visiting a 404 preload doesn't work in root page (src/routes/index.html) after visiting a 404 Oct 11, 2018
@Conduitry
Copy link
Member

Should be fixed by sveltejs/sapper#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