Fork me on GitHub

If you’re using Keechma toolbox in your projects, check out this commit which updates the project to the latest APIs from Keechma toolbox. Biggest changes are how forms work and how are keechma toolbox libraries being used. Dataloader and forms now have install functions which will wire up all the controllers, subscriptions etc. needed for the lib to work correctly. The API is a bit more “magical” now, but I think that the codebase is more clear. Here you can see how you would wire up dataloader and forms and here you can see the new forms (UI) API in action

👀 1

If you are wondering how can these components access the form state, forms’ install function adds form-state subscription dependency to all registered components (


This means that you don’t have to manually subscribe to the form-state subscription in your components anymore ( - no more subscription deps). While I don’t usually like these kind of magical APIs I feel that forms are a somewhat special case, especially because they are implemented across form records, controllers and subscriptions. This way the implementation details are not leaking out