Improve error messages for derived sources

There seemed to be confusion over reactive-scoping (likely due to
incomplete docs), so I've added more explicit error messages when
deriving in non-reactive scopes to warn the user to use `root()` or
`mount()`.
This commit is contained in:
aaron 2023-09-18 09:40:54 +01:00
parent d13f66a1e1
commit c4a0180a2f
9 changed files with 31 additions and 42 deletions

View file

@ -464,7 +464,6 @@ TEST("derive()", wrap_root(function()
local a = source(0)
local destroy = vide.mount(function()
local _b = derive(function()
cleanup(function()
count += 1