Skip to content

Restart R keeps the page - #56

Merged
PeterSlijkhuis merged 1 commit into
mainfrom
restart-r-in-place
Oct 1, 2026
Merged

PeterSlijkhuis merged 1 commit into
mainfrom
restart-r-in-place

Conversation

@PeterSlijkhuis

@PeterSlijkhuis PeterSlijkhuis commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Before: clicking Restart R remounted the whole page, so it looked like a reload. Edited code, outputs and scroll position were lost.

After: only R restarts. The page, the code a student typed, earlier outputs and the scroll position all stay, and Run works again once R is ready.

How: App no longer keys the routes on a restart counter. useLessonSession listens for restarts and rebuilds its environment on the new R, which the lesson pages and the R Workspace already pick up.

Restart R remounted every route, which wiped the page like a reload.
Lesson and workspace sessions now rebuild their environment on the new R
in place, so code, outputs and scroll position stay.
@PeterSlijkhuis
PeterSlijkhuis merged commit f145158 into main Oct 1, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
github-pages — f1451587 Deployed Oct 1, 2026 by PeterSlijkhuis via deploy #148
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.

1 participant