import { createRenderEffect } from "solid-js"; /** * Alias of {@link createRenderEffect} named to read 1:1 against Base UI React * component ports that reach for `useIsoLayoutEffect`. * * `createRenderEffect` is Solid 2's render-phase split effect — compute runs * during the reactive tracking phase, apply runs synchronously before paint * (i.e. as DOM elements are created/updated, not batched to the next * microtask). That matches `useLayoutEffect` semantics closely enough to * stand in for the React helper in a port. * * The call signature is `(compute, apply, options?)`, the Solid 2 split-effect * shape — not React's single-callback signature. Ports that previously passed * a single function + dep array need to be restructured to compute/apply. */ export const useIsoLayoutEffect = createRenderEffect;