mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Basic Fizz Architecture (#20970)
* Copy some infra structure patterns from Flight * Basic data structures * Move structural nodes and instruction commands to host config * Move instruction command to host config In the DOM this is implemented as script tags. The first time it's emitted it includes the function. Future calls invoke the same function. The side of the complete boundary function in particular is unfortunately large. * Implement Fizz Noop host configs This is implemented not as a serialized protocol but by-passing the serialization when possible and instead it's like a live tree being built. * Implement React Native host config This is not wired up. I just need something for the flow types since Flight and Fizz are both handled by the isServerSupported flag. Might as well add something though. The principle of this format is the same structure as for HTML but a simpler binary format. Each entry is a tag followed by some data and terminated by null. * Check in error codes * Comment
This commit is contained in:
committed by
GitHub
parent
bd245c1bab
commit
10cc400184
@@ -376,5 +376,13 @@
|
||||
"385": "A mutable source was mutated while the %s component was rendering. This is not supported. Move any mutations into event handlers or effects.",
|
||||
"386": "The current renderer does not support microtasks. This error is likely caused by a bug in React. Please file an issue.",
|
||||
"387": "Should have a current fiber. This is a bug in React.",
|
||||
"388": "Expected to find a bailed out fiber. This is a bug in React."
|
||||
"388": "Expected to find a bailed out fiber. This is a bug in React.",
|
||||
"389": "There can only be one root segment. This is a bug in React.",
|
||||
"390": "Errored or already flushed boundaries should not be flushed again. This is a bug in React.",
|
||||
"391": "A previously unvisited boundary must have exactly one root segment. This is a bug in React.",
|
||||
"392": "A root segment ID must have been assigned by now. This is a bug in React.",
|
||||
"393": "Cache cannot be refreshed during server rendering.",
|
||||
"394": "startTransition cannot be called during server rendering.",
|
||||
"395": "An ID must have been assigned before we can complete the boundary.",
|
||||
"396": "More boundaries or placeholders than we expected to ever emit."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user