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

Workaround with React.lazy #103

Open
errand opened this issue Nov 1, 2022 · 0 comments
Open

Workaround with React.lazy #103

errand opened this issue Nov 1, 2022 · 0 comments

Comments

@errand
Copy link

errand commented Nov 1, 2022

The problem is that when the first render there is a Suspence instead of actual Components, so no Hash anchor exists yet. In this case then user comes outside the site he doesn't scroll down to the anchor component.

I tried to add anchors outsite the

<h2 id={'second'}></h2>
<Suspense fallback={<div>Загрузка...</div>}>
    <Section2 />
</Suspense>

but no. Any ideas?

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

No branches or pull requests

1 participant