UNPKG

@matthewgapp/solidjs-flow

Version:

React Flow - A highly customizable React library for building node-based editors and interactive flow charts.

8 lines (5 loc) 310 B
// import { useEffect, useLayoutEffect } from 'react'; import { createEffect } from "solid-js"; // we need this hook to prevent a warning when using react-flow in SSR // TODO: maybe we need to update this? export const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? createEffect : createEffect;