MCPcopy Create free account
hub / github.com/facebook/react / createDeepMap

Function createDeepMap

packages/react-client/src/__tests__/ReactFlight-test.js:3729–3736  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

3727 // @gate __DEV__ && enableComponentPerformanceTrack
3728 it('can render deep but cut off Map/Set in debug info', async () => {
3729 function createDeepMap(n) {
3730 if (n <= 0) {
3731 return null;
3732 }
3733 const map = new Map();
3734 map.set('key', createDeepMap(n - 1));
3735 return map;
3736 }
3737
3738 function createDeepSet(n) {
3739 if (n <= 0) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected