alvarotrigo / alvarotrigo/react-fullpage

Not ending up on the first section after Next.js page transition

Ouverte
#327 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
JavaScript
Étoiles
1.3k
Forks
172
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Description
Hello! I recently upgraded to v4 when I noticed this issue, the bug is not in v3.

I have multiple pages in Next.js with different fullpage sections, when doing a page transition I'm not always ending up on the first section.

https://user-images.githubusercontent.com/1552194/168397655-5cb7a63b-3103-4372-8e43-aaced4cd0651.mov

### Reproduction
https://codesandbox.io/s/react-fullpage-page-transition-bug-5qre5d?file=/components/fullpage.js
(might need to open a new terminal and run `yarn start` and open a new browser in `:3001`, seems to be some issue with CodeSandbox)

### Steps to reproduce it
1. Click down the sections until you get to the last section
2. Click link to the second page
3. See that you end up on section number 2 and not the first one

### Versions
Chrome, Mac OS

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.