MCPcopy Create free account
hub / github.com/BetaSu/big-react / commitUpdate

Function commitUpdate

packages/react-noop-renderer/src/hostConfig.ts:72–83  ·  view source on GitHub ↗
(fiber: FiberNode)

Source from the content-addressed store, hash-verified

70};
71
72export function commitUpdate(fiber: FiberNode) {
73 switch (fiber.tag) {
74 case HostText:
75 const text = fiber.memoizedProps?.content;
76 return commitTextUpdate(fiber.stateNode, text);
77 default:
78 if (__DEV__) {
79 console.warn('未实现的Update类型', fiber);
80 }
81 break;
82 }
83}
84
85export function commitTextUpdate(textInstance: TextInstance, content: string) {
86 textInstance.text = content;

Callers

nothing calls this directly

Calls 1

commitTextUpdateFunction · 0.70

Tested by

no test coverage detected