✓
Passing This code compiles and runs correctly.
Code
// MIRROR of 220_017_effect_branch_multiline_chain: a `std/store:watch`
// subscription with a multi-line continuation chain, and the write that fires
// it, inside an imported module.
//
// A watch compiles INTO the write path rather than registering at runtime, so
// the subscription body and the write site have to resolve to one synthesized
// write-subflow. Both live in the module here, which is the case a library with
// private reactive state is made of.
import app/lib
app/lib:run()
Supporting Files
import std/io
import std/store
std/store:new(c) { v: 0[i64] }
std/store:watch(c)
! v x |> std/io:print.ln("a")
|> std/io:print.ln("b")
|> std/io:print.ln("d")
pub tor run {}
run = std/store:stored { c.v: 1 }
Actual
a
b
d
Expected output
a
b
d
Flows
flow ~run click a branch to expand · @labels scroll to their anchor
run
Test Configuration
MUST_RUN