Commit 2a6274c
committed
fix(containers): fix showComposeTab reactivity — use IIFE inside $derived not a stored function
$derived((): boolean => {...}) stores a function as the derived value; Svelte 5
doesn't track reactive reads (project, composeServiceName) when the stored function
is called later from inside tabItems. Use an IIFE inside $derived instead so the
boolean is computed directly and reactivity is properly tracked.1 parent 02c7080 commit 2a6274c
File tree
1 file changed
+17
-11
lines changed- frontend/src/routes/(app)/containers/[containerId]
1 file changed
+17
-11
lines changedLines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
| |||
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
252 | | - | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
407 | | - | |
| 413 | + | |
408 | 414 | | |
409 | 415 | | |
410 | 416 | | |
| |||
0 commit comments