Skip to content

Commit bc6c19b

Browse files
committed
dev: update context warning
1 parent 9f6e6b3 commit bc6c19b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/solid/src/reactive/signal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ export function useContext<T>(context: Context<T>): T {
12041204
let ctx = Owner && Owner.context && (value = Owner.context[context.id]) !== undefined
12051205
? value
12061206
: context.defaultValue;
1207-
IS_DEV && !ctx && console.warn("`useContext` returns null. Is it being called inside a provider?")
1207+
IS_DEV && !ctx && console.warn("`useContext` is returning undefined. Is it being called inside a provider?")
12081208
return ctx;
12091209
}
12101210

0 commit comments

Comments
 (0)