Primitive to manage events in a reactive way.
npm install @solid-primitives/event-props


A helpful primitive that creates the event props and a reactive store with the latest events
``bash`
npm install @solid-primitives/event-propsor
yarn add @solid-primitives/event-props
Receive the event props and a props with the latest events:
`ts
const [events, eventProps] = createEventProps('mousedown', 'mousemove', 'mouseup');
const isMouseDown = createMemo(() => (events.mousedown?.ts ?? 0) > (events.mouseup?.ts ?? 1));
createEffect(() => {
if (isMouseDown()) {
console.log(events.mousemove?.clientX, events.mousemove?.clientY);
}
})
TODO
See CHANGELOG.md