hexops / vecty

Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
BSD 3-Clause "New" or "Revised" License
2.79k stars 144 forks source link

add IsMounted func. to allow calls to Node() w/o panic #283

Closed xoviat closed 2 years ago

xoviat commented 2 years ago

currently a recover is required so that if the HTML is unmounted the program will continue without crashing. This adds a function so that it's possible to check whether the component is mounted.