links are dead after firefox bfcache navigation
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
in a nextjs production build, when i navigate to an external site with a RAC link which uses a `render` prop wrapping `next/link`, and then come back to the site with browser Back button, all client side links are dead.
could only reproduce in firefox and in a production build. chrome and dev server seem to be fine
### 🤔 Expected Behavior?
links should work
### 😯 Current Behavior
links are dead
### 💁 Possible Solution
_No response_
### 🔦 Context
dead links
### 🖥️ Steps to Reproduce
- clone https://github.com/stefanprobst/issue-rac-next-link-bfcache-firefox
- pnpm install
- pnpm build
- pnpm start
- open http://localhost:3000 in firefox
- click "Leave via a react-aria link"
- press browser Back button
- try to navigate with any of the links in section 2
### Version
react-aria-components@1.20.0
### What browsers are you seeing the problem on?
Firefox
### If other, please specify.
_No response_
### What operating system are you using?
linux
### 🧢 Your Company/Team
_No response_
### 🕷 Tracking Issue
_No response_
Contributor guide
Research direction
Start with the reproduction repository at https://github.com/stefanprobst/issue-rac-next-link-bfcache-firefox, then run pnpm install, pnpm build, and pnpm start in Firefox. Follow the listed navigation steps and compare behavior after browser Back; done means the links in section 2 navigate normally after returning from the external site.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, react, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100