@lucianojd/recoil-sync-next
Version:
recoil-sync stores for Next.js
12 lines (11 loc) • 481 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { RecoilURLSyncJSON } from 'recoil-sync';
import { useSyncURLNext } from './useSyncURLNext';
export const RecoilURLSyncJSONNext = ({ children, shallow = true, ...options }) => {
const { browserInterface, ...defaultOptions } = useSyncURLNext({ shallow });
return (_jsx(RecoilURLSyncJSON, { ...{
...defaultOptions,
...options,
browserInterface,
}, children: children }));
};