Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Aral Balkan
Aral Balkan
@aral@mastodon.ar.al  ·  activity timestamp 4 days ago

🥳 New Kitten¹ release

• Added `initialise()` hook to `kitten.Component` instances.

This gets called at the end of the constructor and is handy if you don’t want to override the constructor and have to handle the `data` parameter and remember to call `super(data)`. You can still access passed data from `this.data`.
Note that the component is not part of the view hierarchy on the client at this point. If you have tasks you need to perform only once per page – for example, instantiating a child component to use in your view template – override the `onConnect()` handler instead which is guaranteed to be called just once when your component has successfully been added to a connected page.

https://codeberg.org/kitten/app/src/branch/main/CHANGELOG.md#2026-02-23

Enjoy!

kitten💕

¹ https://kitten.small-web.org

#Kitten #KittenReleases #SmallWeb #SmallTech #web #dev #components

Codeberg.org

app/CHANGELOG.md at main

app - A web development kit that’s small, purrs, and loves you.
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct