alvarotrigo / alvarotrigo/react-fullpage

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

Aperta
#327 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
1.3k
Fork
172
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.