LWC Architecture for Enterprise Apps: �Patterns That Scale Beyond a Single Component
DemoJam Competitors
Silver
Gold
Platinum
Thank You
Our Sponsors
About Me
Michal Bajdek�Tucario
LWC projects don’t fail because of the framework
They fail because of decisions nobody make
They fail because of decisions nobody make
Locker != LWR
Monolith
Chaos
Pivot
Communication
State
Responsibility
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
Parent LWC
Child A
Child B
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
How do components communicate ?
No rules / chaos
Parent–child �Props ↓ /Events ↑
No relation → Global? → LMS / Rethink architecture
CzechDreamin
CzechDreamin
State
Who owns the data ? Where does it live ?
Who owns it and where does it live?
Duplicate data
@Wire vs imperative
AI makes decisions
CzechDreamin
CzechDreamin
Who owns it and where does it live?
Duplicate data
@Wire vs imperative
AI makes decisions
CzechDreamin
CzechDreamin
Who owns it and where does it live?
Duplicate data
@Wire vs imperative
AI makes decisions
CzechDreamin
CzechDreamin
Who owns it and where does it live?
Duplicate data
@Wire vs imperative
AI makes decisions
CzechDreamin
CzechDreamin
Who owns it and where does it live?
Duplicate data
@Wire vs imperative
AI makes decisions
CzechDreamin
CzechDreamin
Responsibility
Who owns the data ? Where does it live ?
Monolith vs Chaos
Single Component does it all
UI, data fetching, business logic, communication… all in one place.
Monolith vs Chaos
Single Component does it all
UI, data fetching, business logic, communication… all in one place.
Split everything into smaller components
logic is now scattered everywhere.
Some of it in the UI…�Some of it in helpers…�Some of it duplicated across components.
Monolith vs Chaos
Single Component does it all
UI, data fetching, business logic, communication… all in one place.
Split everything into smaller components
logic is now scattered everywhere.
Some of it in the UI…�Some of it in helpers…�Some of it duplicated across components.
Loss Of Control
LWC Toolkit
Thank You !
DemoJam Competitors
Silver
Gold
Platinum
Thank You
Our Sponsors