[MEDIUM] Extract inline view components from App.tsx into separate files #45
Labels
No labels
blocked:needs-human
blocked:verify-failed
bug
feature-request
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/subvault#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Locations:
src/App.tsx—Sidebar,MobileMenu,DashboardView,CalendarView,SubscriptionsView,SettingsView, all defined as inline arrow-function constantsProblem: New component functions allocated on every
Apprender. Triggers unnecessary child reconciliations. Prevents tree-shaking and lazy-loading of views.Impact: Slower reconciliation; larger initial bundle.
Fix: Extract to
src/views/directory. Lazy-load withReact.lazy(() => import(./views/...)).Effort: ~2-3 hours