ReactPostPaintCallback.js — react Source File
Architecture documentation for ReactPostPaintCallback.js, a javascript file in the react codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 503df4a8_d98b_a526_45ac_811a72782707["ReactPostPaintCallback.js"] a6668d1d_397d_7807_719d_fdecf552fa4a["ReactFiberConfig.js"] 503df4a8_d98b_a526_45ac_811a72782707 --> a6668d1d_397d_7807_719d_fdecf552fa4a d73e9290_2d2e_5d3f_97dd_84929f205c77["ReactFiberWorkLoop.js"] d73e9290_2d2e_5d3f_97dd_84929f205c77 --> 503df4a8_d98b_a526_45ac_811a72782707 style 503df4a8_d98b_a526_45ac_811a72782707 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {requestPostPaintCallback} from './ReactFiberConfig';
let postPaintCallbackScheduled = false;
let callbacks: Array<any | ((endTime: number) => void)> = [];
export function schedulePostPaintCallback(callback: (endTime: number) => void) {
callbacks.push(callback);
if (!postPaintCallbackScheduled) {
postPaintCallbackScheduled = true;
requestPostPaintCallback(endTime => {
for (let i = 0; i < callbacks.length; i++) {
callbacks[i](endTime);
}
postPaintCallbackScheduled = false;
callbacks = [];
});
}
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does ReactPostPaintCallback.js do?
ReactPostPaintCallback.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactPostPaintCallback.js?
ReactPostPaintCallback.js defines 2 function(s): let, schedulePostPaintCallback.
What does ReactPostPaintCallback.js depend on?
ReactPostPaintCallback.js imports 1 module(s): ReactFiberConfig.js.
What files import ReactPostPaintCallback.js?
ReactPostPaintCallback.js is imported by 1 file(s): ReactFiberWorkLoop.js.
Where is ReactPostPaintCallback.js in the architecture?
ReactPostPaintCallback.js is located at packages/react-reconciler/src/ReactPostPaintCallback.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-reconciler/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free