[Basic] Context - Basic Example

2
closed
Avivhdr
Avivhdr
Posted 5 months ago

[Basic] Context - Basic Example #432

What cheatsheet is this about?

Basic cheatsheet

What's your issue or idea?

Not sure if it's known but the basic example in the Context page has a TS error (because the context can be null):

image

I solved this using the syntax in the extended-example

(If applicable) Reproduction of issue in TypeScript Playground

TS Playground

sw-yx
sw-yx
Created 5 months ago

fix welcome :) no time to look at this right now

stale[bot]
stale[bot]
Created 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!