Merge branch 'main' into main

This commit is contained in:
spider 2026-03-10 23:32:29 +01:00 committed by GitHub
commit 38f829f169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
## Unreleased
### Changed
- `branch()` is now allowed to be used within a reactive scope.
--------------------------------------------------------------------------------
## [0.4.0] - 2026-01-17 ## [0.4.0] - 2026-01-17
### Added ### Added

View file

@ -13,8 +13,8 @@ local function branch<T>(fn: () -> T): (() -> (), T)
end end
local parent = current.owner local parent = current.owner
if not parent or parent.effect then if not parent then
error(`current scope is not owned by a stable scope`, 0) error(`current scope is not owned by a scope`, 0)
end end
local node = create_node(parent, false, false) local node = create_node(parent, false, false)