mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update docs
This commit is contained in:
parent
3aed45212a
commit
d682161c06
13 changed files with 315 additions and 493 deletions
|
|
@ -45,9 +45,9 @@ local function assert_owning_scope(): Node<unknown>
|
|||
|
||||
if not scope then
|
||||
local caller_name = debug.info(2, "n")
|
||||
return throw(`cannot use {caller_name}() in non-reactive scope, must be used within a root() or mount() callback`)
|
||||
return throw(`cannot use {caller_name}() in a non-reactive scope`)
|
||||
elseif scope.effect then
|
||||
throw("cannot create new reactive scope inside of a tracking scope") -- todo: allow this?
|
||||
throw("cannot create new reactive scope in a tracking reactive scope")
|
||||
end
|
||||
|
||||
return scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue