File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const createInitialValue = () => ({
19
19
text : atom ( '' ) ,
20
20
refId : atom ( '' ) ,
21
21
} )
22
+
22
23
const CommentBoxContext = createContext ( createInitialValue ( ) )
23
24
24
25
const CommentBoxProvider = ( props : PropsWithChildren ) => {
@@ -33,6 +34,7 @@ const enum CommentBoxMode {
33
34
'legacy' ,
34
35
'with-auth' ,
35
36
}
37
+
36
38
export const CommentBox : FC < CommentBaseProps > = ( props ) => {
37
39
const [ mode , setMode ] = useState < CommentBoxMode > ( CommentBoxMode [ 'with-auth' ] )
38
40
return (
@@ -75,6 +77,7 @@ const CommentBoxWithAuth = () => {
75
77
</ AutoResizeHeight >
76
78
)
77
79
}
80
+
78
81
const CommentAuthedInputSkeleton = ( ) => {
79
82
const color = 'bg-gray-200/50 dark:bg-zinc-800/50'
80
83
return (
@@ -89,6 +92,7 @@ const CommentAuthedInputSkeleton = () => {
89
92
</ div >
90
93
)
91
94
}
95
+
92
96
const CommentAuthedInput = ( ) => {
93
97
const { user } = useUser ( )
94
98
if ( ! user ) return < CommentAuthedInputSkeleton />
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ export function Providers({ children }: PropsWithChildren) {
25
25
return (
26
26
< >
27
27
< SocketContainer />
28
+ < ModalStackProvider key = "modalStackProvider" />
28
29
< ProviderComposer contexts = { contexts } >
29
30
{ children }
30
31
< EventProvider key = "viewportProvider" />
31
32
< SentryProvider key = "SentryProvider" />
32
33
< PageScrollInfoProvider key = "PageScrollInfoProvider" />
33
34
< DebugProvider key = "debugProvider" />
34
- < ModalStackProvider key = "modalStackProvider" />
35
35
</ ProviderComposer >
36
36
</ >
37
37
)
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ const persister = {
27
27
export const queryClient = new QueryClient ( {
28
28
defaultOptions : {
29
29
queries : {
30
- cacheTime : 1000 * 60 * 5 , // 5 minutes
30
+ staleTime : 1000 * 60 * 5 , // 5 minutes
31
+
31
32
refetchInterval : 1000 * 60 * 5 , // 5 minutes
32
33
refetchOnWindowFocus : false ,
33
34
refetchIntervalInBackground : false ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { cache } from 'react'
4
4
const queryClient = new QueryClient ( {
5
5
defaultOptions : {
6
6
queries : {
7
- // cacheTime: 0,
8
7
staleTime : 1000 * 3 ,
8
+ cacheTime : 1000 * 3 ,
9
9
} ,
10
10
} ,
11
11
} )
You can’t perform that action at this time.
0 commit comments