Stipple.jl: global model stopped working

The following simple example doesn’t work with a global model (pressing the Hi button doesn’t print anything):

using GenieFramework
@genietools

@app MyApp begin
    @in say_hi = false
    @onchange say_hi println("Hi!")
end myhandlers

ui() = button("Hi", @click("say_hi = !say_hi"))

global model = init(MyApp, debounce = 0) |> myhandlers

route("/") do
    page(model, ui) |> html
end

up()

I’m on:

(tmp) pkg> st
Status `~/tmp/Project.toml`
  [a59fdf5c] GenieFramework v1.26.8

julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
  Threads: 11 on 8 virtual cores

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 22 (22 by maintainers)

Most upvoted comments

I can see https://github.com/GenieFramework/StippleUI.jl/commit/c2f47b383e86cfd628f699c765d78d40a7c6f9f2, so I think I’ll wait for that and then try it out. I think that that would be the last thing I’m using a global model for and then I’ll be globally free! Thanks!