File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function useFlow(
1818} {
1919 const context = useContext ( FrigadeContext )
2020 if ( ! context || ! context . frigade ) {
21- logOnce ( `useFlow('${ flowId } ') must be used in a child of the Frigade Provider` , 'error ' )
21+ logOnce ( `useFlow('${ flowId } ') must be used in a child of the Frigade Provider` , 'warn ' )
2222 }
2323 const { frigade, variables } = context ?? { }
2424 const [ , setForceRender ] = useState < boolean > ( false )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { logOnce } from '../shared/log'
66export function useFrigade ( ) {
77 const context = useContext ( FrigadeContext )
88 if ( ! context || ! context . frigade ) {
9- logOnce ( 'useFrigade() must be used in a child of the Frigade Provider' , 'error ' )
9+ logOnce ( 'useFrigade() must be used in a child of the Frigade Provider' , 'warn ' )
1010 }
1111
1212 const { frigade } = context
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { logOnce } from '../shared/log'
66export function useGroup ( ) {
77 const context = useContext ( FrigadeContext )
88 if ( ! context || ! context . frigade ) {
9- logOnce ( 'useGroup() must be used in a child of the Frigade Provider' , 'error ' )
9+ logOnce ( 'useGroup() must be used in a child of the Frigade Provider' , 'warn ' )
1010 }
1111 const { frigade } = context ?? { }
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { logOnce } from '../shared/log'
66export function useUser ( ) {
77 const context = useContext ( FrigadeContext )
88 if ( ! context || ! context . frigade ) {
9- logOnce ( 'useUser() must be used in a child of the Frigade Provider' , 'error ' )
9+ logOnce ( 'useUser() must be used in a child of the Frigade Provider' , 'warn ' )
1010 }
1111 const { userId, frigade } = context ?? { }
1212
You can’t perform that action at this time.
0 commit comments