From bb081ef88504190c08cb953bbba9ecfd1da3e729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Sat=C4=B1r?= <45640934+deniznehlyadyuk@users.noreply.github.com> Date: Fri, 18 Sep 2026 11:06:39 +0300 Subject: [PATCH] Fix initialCount prop to count in CounterProvider Updated the example to use count instead of initialCount in CounterProvider, making the example clearer and easier to understand while reducing potential confusion. --- src/routes/(0)concepts/(4)context.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(0)concepts/(4)context.mdx b/src/routes/(0)concepts/(4)context.mdx index 393ee8e67d..db22290201 100644 --- a/src/routes/(0)concepts/(4)context.mdx +++ b/src/routes/(0)concepts/(4)context.mdx @@ -179,7 +179,7 @@ export function App() { import { createSignal, useContext } from "solid-js"; export function CounterProvider(props) { - const [count, setCount] = createSignal(props.initialCount || 0); + const [count, setCount] = createSignal(props.count || 0); const counter = [ count, {