Skip to content

Commit c5a3d91

Browse files
committed
chore: build
1 parent 864d565 commit c5a3d91

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

packages/next/examples/next-app-router/components/ConfigDisplay.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
"use client";
22

3-
import { useAppConfig, useAppReplane } from "@/replane/hooks";
3+
import { useAppConfig } from "@/replane/hooks";
44

55
export function ConfigDisplay() {
66
// Use the typed hook - config names autocomplete and values are fully typed
77
const theme = useAppConfig("theme");
88
const features = useAppConfig("features");
99

10-
// Alternative: use the client directly for more control
11-
// const replane = useAppReplane();
12-
// const theme = replane.get("theme");
13-
// const allConfigs = replane.getSnapshot().configs;
10+
// Alternative: use the useConfig hook directly
11+
// const theme = useConfig<{ darkMode: boolean; primaryColor: string }>("theme");
1412

1513
return (
1614
<div

packages/next/examples/next-pages-router/components/ConfigDisplay.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { useAppConfig, useAppReplane } from "@/replane/hooks";
1+
import { useAppConfig } from "@/replane/hooks";
22

33
export function ConfigDisplay() {
44
// Use the typed hook - config names autocomplete and values are fully typed
55
const theme = useAppConfig("theme");
66
const features = useAppConfig("features");
77

8-
// Alternative: use the client directly for more control
9-
// const replane = useAppReplane();
10-
// const theme = replane.get("theme");
11-
// const allConfigs = replane.getSnapshot().configs;
8+
// Alternative: use the useConfig hook directly
9+
// const theme = useConfig<{ darkMode: boolean; primaryColor: string }>("theme");
1210

1311
return (
1412
<div

packages/react/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCallback, useContext, useEffect, useMemo, useRef, useSyncExternalStore } from "react";
1+
import { useCallback, useContext, useEffect, useRef, useSyncExternalStore } from "react";
22
import { ReplaneContext } from "./context";
33
import type { UntypedReplaneConfig } from "./types";
44
import type { ReplaneClient, GetConfigOptions } from "@replanejs/sdk";

0 commit comments

Comments
 (0)