UNPKG

@lucianojd/recoil-sync-next

Version:

recoil-sync stores for Next.js

12 lines (11 loc) 490 B
import { jsx as _jsx } from "react/jsx-runtime"; import { RecoilURLSyncTransit } from 'recoil-sync'; import { useSyncURLNext } from './useSyncURLNext'; export const RecoilURLSyncTransitNext = ({ children, shallow = true, ...options }) => { const { browserInterface, ...defaultOptions } = useSyncURLNext({ shallow }); return (_jsx(RecoilURLSyncTransit, { ...{ ...defaultOptions, ...options, browserInterface, }, children: children })); };