MCPcopy Create free account
hub / github.com/visgl/react-map-gl / forceUpdate

Function forceUpdate

modules/react-mapbox/src/components/source.ts:91–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 if (map) {
90 /* global setTimeout */
91 const forceUpdate = () => setTimeout(() => setStyleLoaded(version => version + 1), 0);
92 map.on('styledata', forceUpdate);
93 forceUpdate();
94

Callers 1

SourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…