create-landing-app 0.2.6 → 0.2.8

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,6 @@
1
1
  {
2
2
  "name": "create-landing-app",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Create a production-ready Next.js landing page with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,6 +2,7 @@
2
2
  // __PROVIDERS_IMPORT__
3
3
 
4
4
  export default function Providers({ children }: { children: React.ReactNode }) {
5
+ // __PROVIDERS_INIT__
5
6
  return (
6
7
  <>
7
8
  {/* __PROVIDERS_WRAP_START__ */}
@@ -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
- const content = <>{children}</>;
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,3 +1,4 @@
1
+ "use client";
1
2
  import { motion } from "motion/react";
2
3
  import { ContactForm } from "./contact-form";
3
4
 
@@ -1,9 +1,13 @@
1
1
  MARKER:__PROVIDERS_IMPORT__
2
+ import { useState } from "react";
2
3
  import { QueryClientProvider } from "@tanstack/react-query";
3
- import { getQueryClient } from "@/lib/query-client";
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={getQueryClient()}>
10
+ <QueryClientProvider client={queryClient}>
7
11
  ---
8
12
  MARKER:__PROVIDERS_WRAP_END__
9
13
  </QueryClientProvider>