Get the current width in real time into a variable
@Jacob Kofoed
I made a package a while ago to check for when a specific media -query condition changes . So you could set it up on onLoad to check if "max -width : 1024px " etc . is true or not , and update a variable . The package is called "Match media " and there should be a tiny bit of documentation on it . https://editor.nordcraft.com/projects/match_media/branches/main/components/HomePage Alternatively you would have to create a custom action where you send an event on something like window.addEventListener("resize", ctx.triggerActionEvent("callback", window.innerWidth) but this is less efficient .