create-landing-app 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { DictProvider } from "@/lib/dict-context";
|
|
3
3
|
import type en from "@/dictionaries/en.json";
|
|
4
|
+
// __PROVIDERS_IMPORT__
|
|
4
5
|
|
|
5
6
|
type Dictionary = typeof en;
|
|
6
7
|
|
|
@@ -11,6 +12,13 @@ export default function Providers({
|
|
|
11
12
|
children: React.ReactNode;
|
|
12
13
|
dict?: Dictionary;
|
|
13
14
|
}) {
|
|
14
|
-
|
|
15
|
+
// __PROVIDERS_INIT__
|
|
16
|
+
const content = (
|
|
17
|
+
<>
|
|
18
|
+
{/* __PROVIDERS_WRAP_START__ */}
|
|
19
|
+
{children}
|
|
20
|
+
{/* __PROVIDERS_WRAP_END__ */}
|
|
21
|
+
</>
|
|
22
|
+
);
|
|
15
23
|
return dict ? <DictProvider dict={dict}>{content}</DictProvider> : content;
|
|
16
24
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
MARKER:__PROVIDERS_IMPORT__
|
|
2
|
+
import { useState } from "react";
|
|
2
3
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
3
|
-
import {
|
|
4
|
+
import { makeQueryClient } from "@/lib/query-client";
|
|
5
|
+
---
|
|
6
|
+
MARKER:__PROVIDERS_INIT__
|
|
7
|
+
const [queryClient] = useState(() => makeQueryClient());
|
|
4
8
|
---
|
|
5
9
|
MARKER:__PROVIDERS_WRAP_START__
|
|
6
|
-
<QueryClientProvider client={
|
|
10
|
+
<QueryClientProvider client={queryClient}>
|
|
7
11
|
---
|
|
8
12
|
MARKER:__PROVIDERS_WRAP_END__
|
|
9
13
|
</QueryClientProvider>
|