app v6.4.0 Release Notes
Release Date: 2020-05-05 // almost 4 years ago-
Hello,
🚀 Here is the v6.4.0. This release brings a couple of modifications:⚡️ OnUpdate : You can now listen for a component update by implementing the Updatable interface.
type myCompo struct { app.Compo}func (c *myCompo) OnUptdate() { // Component has been updated...}
app.Text() now takes an
interface{}
that is stringified to render a text nodeOnLoad event handler has been added to supported HTML elements
Non self closing HTML elements now have a
Text(v interface{})
helper method that sets the element body to a single text node:app.H1().Text("hello")// Same as:app.H1().Body( app.Text("hello"), )
🚚
LocalStorage
andSessionStorage
encryption has been removed in order to let user decide how they manage those storages. Adding encryption added an overhead in size that made storage filled faster while the maximum size is 10MB