We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3548a commit bed4f26Copy full SHA for bed4f26
src/routes/tutorial/[slug]/state.js
@@ -2,7 +2,7 @@ import { derived, writable } from 'svelte/store';
2
3
/**
4
* @typedef {{
5
- * status: 'initial' | 'select' | 'set' | 'update' | 'switch';
+ * status: 'initial' | 'select' | 'set' | 'update' | 'switch' | 'expand';
6
* stubs: import("$lib/types").Stub[];
7
* last_updated?: import("$lib/types").FileStub;
8
* selected: string | null;
@@ -141,6 +141,7 @@ export const state = {
141
toggle_expanded: (name, expanded) => {
142
update((state) => ({
143
...state,
144
+ status: 'expand',
145
expanded: {
146
...state.expanded,
147
[name]: expanded ?? !state.expanded[name]
0 commit comments