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

Persist current screen during fast refresh on web #4343

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Apr 7, 2023

Summary

Previously, WebExample used to return to home screen after each fast refresh which was quite a poor developer experience. This PR adds linking so that the current screen persists. Note that the missing back button after fast refresh is a well-known issue in react-navigation for web but fortunately the browser back button works just fine.

Nagranie.z.ekranu.2023-04-7.o.15.11.55.mp4

Test plan

  1. Launch WebExample
  2. Open Bokeh example
  3. Save BokehExample.tsx to trigger fast refresh
  4. The app shouldn't go back to home screen

@tomekzaw tomekzaw added this pull request to the merge queue Apr 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Apr 11, 2023
@tomekzaw tomekzaw added this pull request to the merge queue Apr 12, 2023
Merged via the queue into main with commit 66dc049 Apr 12, 2023
5 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/fast-refresh-web branch April 12, 2023 12:06
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
)

## Summary

Previously, WebExample used to return to home screen after each fast
refresh which was quite a poor developer experience. This PR adds
linking so that the current screen persists. Note that the missing back
button after fast refresh is a well-known issue in react-navigation for
web but fortunately the browser back button works just fine.


https://user-images.githubusercontent.com/20516055/230615121-4b6d96db-23ca-4540-974a-0f76f9869bc2.mp4

## Test plan

1. Launch WebExample
2. Open Bokeh example
3. Save BokehExample.tsx to trigger fast refresh
4. The app shouldn't go back to home screen
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

Successfully merging this pull request may close these issues.

None yet

2 participants