{"_id":"@-ft/use-persist","_rev":"1-0ffc593f71846bafa81329f812d0edaa","name":"@-ft/use-persist","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"description":"React usePersist hook","name":"@-ft/use-persist","version":"0.0.1","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-use-persist.git"},"peerDependencies":{"react":"^18.2.0"},"types":"./index.d.ts","bugs":{"url":"https://github.com/42ts/-ft-use-persist/issues"},"homepage":"https://github.com/42ts/-ft-use-persist#readme","_id":"@-ft/use-persist@0.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-85cK/99reM/YaogzrcSNcTmWBy3E97SeVkMc671ZQlkEh1HnvWRHM8PF1g/RLqdzA7A3F6HhEFMkajEMbKaBqQ==","shasum":"e13ea1572a5cc9ccdc7f210323b49443645f443b","tarball":"https://registry.npmjs.org/@-ft/use-persist/-/use-persist-0.0.1.tgz","fileCount":4,"unpackedSize":1261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNI1sDO+PBxQ7d9yOkJWkTQqUH/y/zI4cTjtjo0MCz5QIhAJVfO38HyqFF08/MlAVl7DLp2bzqdd4n9AY6lh+vETXQ"}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-persist_0.0.1_1694359269097_0.5663246412558571"},"_hasShrinkwrap":false},"0.1.0":{"description":"React usePersist hook","name":"@-ft/use-persist","version":"0.1.0","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-use-persist.git"},"peerDependencies":{"react":"^18.2.0"},"types":"./index.d.ts","gitHead":"d94efb15994b21a91a04a7f91c683d9ee5f3329c","bugs":{"url":"https://github.com/42ts/-ft-use-persist/issues"},"homepage":"https://github.com/42ts/-ft-use-persist#readme","_id":"@-ft/use-persist@0.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-cl8vQrODnyYJowUqYuOVgrjACV9OVilIu8pfiZD0sYhEZkW6X5wy9iUbHx0UzxhrfZKITg/8W05eSNt3m2WUKg==","shasum":"066b5984dfcbe28862bc8491b547f66895950443","tarball":"https://registry.npmjs.org/@-ft/use-persist/-/use-persist-0.1.0.tgz","fileCount":4,"unpackedSize":1329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNFQiLz0vTqfzxi60HBUx3AJLsEPTEFh/mEtykCrfSOAiEAo5/BtT9i+yQENMzK19PTSNscetxb2DgAI8kucy09dxY="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-persist_0.1.0_1694616245669_0.3488045553048462"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-10T15:21:08.988Z","0.0.1":"2023-09-10T15:21:09.291Z","modified":"2023-09-13T14:44:06.103Z","0.1.0":"2023-09-13T14:44:05.864Z"},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"description":"React usePersist hook","homepage":"https://github.com/42ts/-ft-use-persist#readme","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-use-persist.git"},"author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"bugs":{"url":"https://github.com/42ts/-ft-use-persist/issues"},"license":"MIT","readme":"# use-persist - react `usePersist` hook\n\nhave something like member variable of class component, in function component.\n\n## Usage\n\n```jsx\nimport { usePersist } from '@-ft/use-persist';\n\nfunction AppContextProvider({ children }) {\n  const persist = usePersist(null);\n  useEffect(() => {\n    persist.current = initializeSomething();\n    return () => {\n      persist.current.dispose();\n      persist.current = null;\n    };\n  }, []);\n  return (\n    <AppContext.Provider value={persist.current}>\n      {children}\n    </AppContext.Provider>\n  );\n}\n```\n","readmeFilename":"README.md"}