backendAPI.js — react Source File
Architecture documentation for backendAPI.js, a javascript file in the react codebase. 8 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR f728765c_edc8_47f1_6565_9b8d47d128a2["backendAPI.js"] 114016f3_a8fe_e14f_8022_69bffc846065["hydration"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> 114016f3_a8fe_e14f_8022_69bffc846065 627bb742_21aa_b4fd_fe2d_4a963a1f9278["utils"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> 627bb742_21aa_b4fd_fe2d_4a963a1f9278 baf70b0e_4867_b3ed_962a_e5c9ae820fef["store"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> baf70b0e_4867_b3ed_962a_e5c9ae820fef df6929d3_b2a7_82f0_ca29_4b179d430182["TimeoutError"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> df6929d3_b2a7_82f0_ca29_4b179d430182 df14fd0f_2c63_317c_d574_05fa11f37cd8["ElementPollingCancellationError"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> df14fd0f_2c63_317c_d574_05fa11f37cd8 40bf6909_04ae_bfb6_965f_14cfe98b94de["types"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> 40bf6909_04ae_bfb6_965f_14cfe98b94de 4077b620_5c59_61c2_0910_273f565da757["bridge"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> 4077b620_5c59_61c2_0910_273f565da757 aec7978f_0a19_ba93_de9e_ac8cf5ddc74b["types"] f728765c_edc8_47f1_6565_9b8d47d128a2 --> aec7978f_0a19_ba93_de9e_ac8cf5ddc74b 1be4c533_22f9_d4ee_5d61_bdd15076cee1["KeyValueContextMenuContainer.js"] 1be4c533_22f9_d4ee_5d61_bdd15076cee1 --> f728765c_edc8_47f1_6565_9b8d47d128a2 style f728765c_edc8_47f1_6565_9b8d47d128a2 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 {hydrate, fillInPath} from 'react-devtools-shared/src/hydration';
import {backendToFrontendSerializedElementMapper} from 'react-devtools-shared/src/utils';
import Store from 'react-devtools-shared/src/devtools/store';
import TimeoutError from 'react-devtools-shared/src/errors/TimeoutError';
import ElementPollingCancellationError from 'react-devtools-shared/src/errors/ElementPollingCancellationError';
import type {
InspectedElement as InspectedElementBackend,
InspectedElementPayload,
SerializedAsyncInfo as SerializedAsyncInfoBackend,
} from 'react-devtools-shared/src/backend/types';
import type {
BackendEvents,
FrontendBridge,
} from 'react-devtools-shared/src/bridge';
import type {
DehydratedData,
InspectedElement as InspectedElementFrontend,
SerializedAsyncInfo as SerializedAsyncInfoFrontend,
} from 'react-devtools-shared/src/frontend/types';
import type {InspectedElementPath} from 'react-devtools-shared/src/frontend/types';
export function clearErrorsAndWarnings({
bridge,
store,
}: {
bridge: FrontendBridge,
store: Store,
}): void {
store.rootIDToRendererID.forEach(rendererID => {
bridge.send('clearErrorsAndWarnings', {rendererID});
});
}
export function clearErrorsForElement({
bridge,
id,
rendererID,
}: {
bridge: FrontendBridge,
id: number,
rendererID: number,
}): void {
bridge.send('clearErrorsForElementID', {
rendererID,
id,
});
}
export function clearWarningsForElement({
bridge,
// ... (322 more lines)
Domain
Dependencies
- ElementPollingCancellationError
- TimeoutError
- bridge
- hydration
- store
- types
- types
- utils
Imported By
Source
Frequently Asked Questions
What does backendAPI.js do?
backendAPI.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does backendAPI.js depend on?
backendAPI.js imports 8 module(s): ElementPollingCancellationError, TimeoutError, bridge, hydration, store, types, types, utils.
What files import backendAPI.js?
backendAPI.js is imported by 1 file(s): KeyValueContextMenuContainer.js.
Where is backendAPI.js in the architecture?
backendAPI.js is located at packages/react-devtools-shared/src/backendAPI.js (domain: BabelCompiler, directory: packages/react-devtools-shared/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free