app v5.0.0 Release Notes

Release Date: 2019-09-03 // 17 days ago
  • app

    • 📦 app package has been moved to pkg/app.
    • Component function associated to html events now take js values as argument.

      func(src, event js.Value)

    👀 See CompoHandler

    • Messenger implementation has been added:

      func (h *Hello) OnMount() { app.Bind("click", h). Do(func() { // do something... }) }func (h *Hello) OnClick(s, e js.Value) { app.Emit("click") }

    • 🚚 Handle has been removed.

    • ⚡️ Package has be revamped to use syscall/js to update a page state rather than an intermediary javascript file.

    • 👍 Single page application (SPA) routing support.


    • goapp init now creates ready to use main.go files if they are nonexistent.

    ⚡️ how to update

    goapp update -v

Previous changes from v4.2.2

  • Summary

    • 🚚 Properly remove loading icon when root component is loaded.