Skip to content

Conversation

7nik
Copy link
Contributor

@7nik 7nik commented Apr 14, 2025

Closes #1126
The button just re-mounts the App, but maybe re-instantiating the entire iframe, to clean up forgotten timers etc., would be better.
The button location isn't the best one - there is no address bar, like in the tutorial or SvelteLab, so alternatives are the console head and before the buttons Fork and Save the REPL. But I find them a bit too far from the tab.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Copy link

vercel bot commented Apr 14, 2025

Someone is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
svelte-dev Ready Ready Preview Sep 5, 2025 9:48pm

@7nik
Copy link
Contributor Author

7nik commented Aug 9, 2025

I'm still not sure what is better: remounting app (simplier) or replacing iframe (would clean up globals, timers, intervas, etc).

@dummdidumm
Copy link
Member

Reloading the entire iframe would be better since intervals is probably the thing I'd use this most for

github-actions bot and others added 29 commits September 18, 2025 13:02
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync svelte docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
* feat: relative github links

* make it work with tutorials, dedupe logic

* lint

* more

* link to org
* fix: make repl console scrollable

* try this

* try this

* i think i fixed it?

* apply suggestion from review

Co-authored-by: Tee Ming <[email protected]>

* Apply suggestion from @eltigerchino

---------

Co-authored-by: Tee Ming <[email protected]>
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
Co-authored-by: Rich Harris <[email protected]>
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync svelte docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
returnType for example can itself contain other AST-like nodes, which would be traversed by context.next(), leading to "cannot override across a split point" magic string errors
sync cli docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync cli docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
- fix `let a!: number;`
- fix `function a(x?: number)`
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
Co-authored-by: ComputerGuy <[email protected]>
…ltejs#1532)

* fix(llms): preserve newlines in generated `llms-medium.txt` file
* chore(llms): remove `normalize_whitespace` functionality
- on startup we had two requests each time due to the svelte version changes in sveltejs#1319, and the file was always marked as changed. Fixed by not notifying when the version info comes from the bundle worker
- migrate had two bundle requests, one from the direct `rebundle()` call, the second one because `update_file` invoked `on_update` that also invoked `rebundle()` -> remove the direct invocation
- `reset` always did two request, because `this.set` already calls `#onreset` -> deduplicate
walk children of assignment expressions as they could have dynamic requires

Should help with techniq/layerchart#512
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
…eltejs#1537)

* feat: add new cmd in the Playground `sv create --from-playground`

* css > alert

* title & aria-label

Co-authored-by: Rich Harris <[email protected]>

* button text

Co-authored-by: Rich Harris <[email protected]>

* remove implicit size

Co-authored-by: Rich Harris <[email protected]>

* position & mask

Co-authored-by: Rich Harris <[email protected]>

---------

Co-authored-by: Rich Harris <[email protected]>
* chore: bump kit

* Sync `kit` docs (sveltejs#1539)

sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync kit docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync svelte docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
sync svelte docs

Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
…eltejs#1544)

* chore(tutorial/select-bindings): remove unnecessary `$state`

* chore(tutorial/select-bindings): removed `$state` rune in app-b
@7nik
Copy link
Contributor Author

7nik commented Sep 18, 2025

hm, something went not really well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Svelte 5 REPL: reload button
10 participants