File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1- import { useRecoilValue } from 'recoil ' ;
1+ import { useAtomValue } from 'jotai ' ;
22import { injectionsState } from 'state/navigation/extensionsAtom' ;
33
44export const useGetInjections = ( location , slot ) => {
5- const injections = useRecoilValue ( injectionsState ) ;
5+ const injections = useAtomValue ( injectionsState ) ;
66 let filteredInjections = [ ] ;
77
88 ( injections || [ ] ) . forEach ( injection => {
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ export const useGetExtensions = () => {
411411 const setExtensions = useSetRecoilState ( extensionsState ) ;
412412 const setStatics = useSetRecoilState ( staticsState ) ;
413413 const setAllExtensions = useSetAtom ( allExtensionsState ) ;
414- const setInjections = useSetRecoilState ( injectionsState ) ;
414+ const setInjections = useSetAtom ( injectionsState ) ;
415415 const setWizard = useSetAtom ( wizardState ) ;
416416 const fetchFn = getFetchFn ( useRecoilValue ) ;
417417 const configuration = useRecoilValue ( configurationAtom ) ;
@@ -596,12 +596,8 @@ export const staticsState: RecoilState<ExtResource[] | null> = recoilAtom<
596596export const allExtensionsState = atom < ExtResource [ ] | null > ( defaultValue ) ;
597597allExtensionsState . debugLabel = 'allExtensionsState' ;
598598
599- export const injectionsState : RecoilState <
600- ExtInjectionConfig [ ] | null
601- > = recoilAtom < ExtInjectionConfig [ ] | null > ( {
602- key : 'injectionsState' ,
603- default : defaultValue ,
604- } ) ;
599+ export const injectionsState = atom < ExtInjectionConfig [ ] | null > ( defaultValue ) ;
600+ injectionsState . debugLabel = 'injectionsState' ;
605601
606602export const wizardState = atom < ExtWizardConfig [ ] | null > ( defaultValue ) ;
607603wizardState . debugLabel = 'wizardState' ;
You can’t perform that action at this time.
0 commit comments