mirror of
https://github.com/centau/vide.git
synced 2026-10-21 20:01:37 +00:00
Error when getting an unset context without a default
This commit is contained in:
parent
a4151bd41e
commit
446be23cfc
3 changed files with 13 additions and 1 deletions
|
|
@ -131,6 +131,8 @@ Creates a new context.
|
|||
|
||||
Calling `context()` returns a new context function.
|
||||
Call this function with no arguments to get the context value.
|
||||
If no context is set, the default value is returned, or an error is thrown
|
||||
if no default was given.
|
||||
Call this function with a value and a function to create a new context with
|
||||
the given value.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue