You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the $effect in date-node-viewer.svelte that notifies parent of title changes. Instead, have the parent derive the title directly.
Problem Statement
Current implementation uses $effect to notify parent when title changes:
// date-node-viewer.svelte line 61$effect(()=>{onTitleChange?.(tabTitle);});
This is the "effect as event handler" anti-pattern. The parent should derive the title from the nodeId rather than waiting for a callback from the child.
Proposed Solution
Option 1 (Preferred): Parent derives title directly
// In parent componentconsttitle=$derived(getDateTabTitle(parseDateFromNodeId(nodeId)));
Option 2: Use onMount for initial notification only
Activity
malibio commentedon Nov 30, 2025
Test baseline: Frontend 1469 passed, Rust 531 passed
Eliminate date-node-viewer onTitleChange callback effect (#694)
Eliminate date-node-viewer onTitleChange callback effect (#697)
Eliminate date-node-viewer onTitleChange callback effect (#697)
Eliminate date-node-viewer onTitleChange callback effect (#697)
Eliminate date-node-viewer onTitleChange callback effect (#697)