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

Routes with lazy and those with loader async do not set view to elementet id after refresh #2174

Open
JayCodeGitHub opened this issue Aug 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JayCodeGitHub
Copy link

Describe the bug

Routes with lazy and those with loader async do not set view to elementet id after refresh. When it is on the path to a specific element with id

files .lazy, loader: async () => {},

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-rz7exv

Steps to Reproduce the Bug or Issue

  1. Go to Form (lazy) or Post (async loader)
  2. Click on Test link which leads to an element with id
  3. Refresh the site (The side inside the sandbox, not the entire sandbox)

Expected behavior

I would expect the viewer's view to be set on the element the link points to as it is on paths without lazy

Screenshots or Videos

Demo.mov

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari]
  • Version: [e.g. 91.1]

Additional context

No response

@schiller-manuel
Copy link
Contributor

seems to be a duplicate of #2014, but #2014 does not mention the loader issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants