MCPcopy Create free account
hub / github.com/GrapesJS/react / up

Function up

packages/grapesjs-react/src/DevicesProvider.tsx:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 const event = Devices.events.all;
42
43 const up = () => {
44 setPropState({
45 devices: Devices.getDevices(),
46 selected: Devices.getSelected()?.id as string,
47 select: id => Devices.select(id)
48 });
49 };
50
51 editor.on(event, up);
52 up();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected