And here’s a real-world example of the lifecycle of an action performed on a local copy of the Gaza Verified web site¹ showing the event from the toggle button on the client being automatically mapped to the relevant event handler on the SignUpsSwitch Kitten component instance, the handler setting a boolean on a JavaScript object in memory, which is automatically persisted to disk via Kitten’s default JSDB² database.
Note that Kitten is smart enough to automatically redact fields in the log output that look like they might be secrets.
All this is in the stateful-components-api-breaking-change branch³ at the moment and will be in the next release.
¹ https://gaza-verified.org
² https://codeberg.org/small-tech/jsdb
³ https://codeberg.org/kitten/app/src/branch/stateful-components-api-breaking-change
#SmallWeb #Kitten #web #dev #statefulComponents #streamingHTML #hypertext #GazaVerified