MCPcopy
hub / github.com/BuilderIO/mitosis / checkHasState

Function checkHasState

packages/core/src/helpers/state.ts:3–4  ·  view source on GitHub ↗
(component: MitosisComponent)

Source from the content-addressed store, hash-verified

1import { MitosisComponent } from '../types/mitosis-component';
2
3export const checkHasState = (component: MitosisComponent) =>
4 Boolean(Object.keys(component.state).length);

Callers 5

componentToMitosisFunction · 0.90
_componentToReactFunction · 0.90
componentToQwikFunction · 0.90
getStateFunction · 0.90
componentToBuilderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected