✅ Solved: Is it possible to streamline the creation of components that contain similar listeners/...
If I have a lot of components (formerly artboards) that require pointer inputs (enter, exit, hover, click, etc.), it's very tedious to create a view model for each of them with several triggers (enter, exit, hover, click, etc.) and recreate the same listeners and state machine that hooks up to those triggers. It's slow to do!
Here's what I'm currently doing:
Creating a shared view model, where it only contains pointer triggers (enter, exit, hover, click, etc.), and simply adding it to each of my components' view models
I'm having to manually create the same listeners and state machines to handle these triggers!
Are there ways of streamlining this workflow? Will the upcoming libraries feature make this any simpler?