UNPKG

@lucianojd/recoil-sync-next

Version:

recoil-sync stores for Next.js

16 lines (15 loc) 718 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecoilURLSyncTransitNext = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const recoil_sync_1 = require("recoil-sync"); const useSyncURLNext_1 = require("./useSyncURLNext"); const RecoilURLSyncTransitNext = ({ children, shallow = true, ...options }) => { const { browserInterface, ...defaultOptions } = (0, useSyncURLNext_1.useSyncURLNext)({ shallow }); return ((0, jsx_runtime_1.jsx)(recoil_sync_1.RecoilURLSyncTransit, { ...{ ...defaultOptions, ...options, browserInterface, }, children: children })); }; exports.RecoilURLSyncTransitNext = RecoilURLSyncTransitNext;