alvarotrigo / alvarotrigo/react-fullpage

Scroll back to to first section after page refresh

未关闭
#355 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
JavaScript
星标
1.3k
派生
172
PR 合并指标
30 天内没有已合并 PR

描述

Hi there!

I have a Next.js build using custom validation to control the user's movement between sections. (it's a quiz)

The problem is that when the page is refreshed, all state data is lost breaking the dynamic content generated based on interactions in previous sections. I'd like it so that when the user refreshes their browser, they are returned to #Section1

I've tried the methods in the docs and they work momentarily after refresh, but then react-fullpage quickly slides back down to the side the user was on before refresh. I wonder if this is to do with the anchor tag in the URL?

Please help me understand what I'm missing here.

Cheers!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。