Stipple.jl icon indicating copy to clipboard operation
Stipple.jl copied to clipboard

importing the named apps from a module breaks rendering

Open hhaensel opened this issue 1 year ago • 0 comments
trafficstars

module MyAppModule

@app MyApp begin
end

ui() = "Hello World"
@page("/", ui, app = MyApp)

end

up()
# at this point the app loads correctly
import .MyAppModule.MyApp
# at this point the app doesn't load anymore

The reason is that after importing the mount point's name is no longer prefixed by the module name, so the following error is displayed in the browser's console

Failed to mount app: mount target selector "#Main_MyAppModule_MyApp" returned null.

Instead, the name MyApp references the correct div.

hhaensel avatar Jun 24 '24 16:06 hhaensel