Skip to content

Commit 5271f36

Browse files
committed
#7212 new intro
1 parent f86f498 commit 5271f36

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

learn/blog/v10-deep-dive-state-provider.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ Every application developer knows the pain of state management. You have a piece
44

55
Modern frameworks solve this with a "Context API," a central provider that makes state available to any descendant. While this solves prop-drilling, it often introduces a hidden performance penalty. In many implementations, when *any* value in the context changes, *all* components consuming that context are forced to re-render, even if they don't care about the specific piece of data that changed.
66

7-
This is the story of how we built a state provider from the ground up to solve this problem, delivering the convenience of a context API without the performance tax.
7+
But what if this performance tax isn't an inevitability, but a symptom of a deeper architectural choice? What if the entire problem could be sidestepped by moving state management off the main thread?
8+
9+
This is the fundamental principle behind the Neo.mjs **platform**. Before we continue, there is one architectural fact you must understand, as it is the origin of all the behavior described below:
10+
11+
**In Neo.mjs, State Providers (including all their reactive data and formulas) live and execute exclusively inside a Web Worker.**
12+
13+
This is possible because Neo.mjs provides a holistic, multi-threaded runtime model out of the box. The State Provider is a core capability of this platform—not simply a store you bolt on. It’s how we can deliver the convenience of a context API without the performance tax.
14+
15+
This is the story of how we built a state provider from the ground up to solve this problem, delivering a system that is intuitive, powerful, and surgically performant.
816

917
*(Part 5 of 5 in the v10 blog series. Details at the bottom.)*
1018

0 commit comments

Comments
 (0)