Skip to content

Commit 93a6de0

Browse files
committed
fix(repl): make share url work again
before, we were replacing the files entirely, so now we need to track deeper.
1 parent 37066a7 commit 93a6de0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/docs/src/routes/examples/[...id]/index!.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export default component$(() => {
6767
useTask$(({ track }) => {
6868
track(() => store.buildMode);
6969
track(() => store.entryStrategy);
70-
track(() => store.files);
7170
track(() => store.version);
71+
track(() => store.files.forEach((f) => f.code));
7272

7373
if (isBrowser) {
7474
if (store.version) {

packages/docs/src/routes/playground/index!.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default component$(() => {
4444
useTask$(({ track }) => {
4545
track(() => store.buildMode);
4646
track(() => store.entryStrategy);
47-
track(() => store.files);
4847
track(() => store.version);
48+
track(() => store.files.forEach((f) => f.code));
4949

5050
if (isBrowser) {
5151
if (store.version) {

0 commit comments

Comments
 (0)