We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6e6b3 commit bc6c19bCopy full SHA for bc6c19b
1 file changed
packages/solid/src/reactive/signal.ts
@@ -1204,7 +1204,7 @@ export function useContext<T>(context: Context<T>): T {
1204
let ctx = Owner && Owner.context && (value = Owner.context[context.id]) !== undefined
1205
? value
1206
: context.defaultValue;
1207
- IS_DEV && !ctx && console.warn("`useContext` returns null. Is it being called inside a provider?")
+ IS_DEV && !ctx && console.warn("`useContext` is returning undefined. Is it being called inside a provider?")
1208
return ctx;
1209
}
1210
0 commit comments