haptic
haptic copied to clipboard
Explicit reactive web rendering in TSX with no compiler, no virtual DOM, and no magic. 1.6kb min+gz.
1. Would like to use sinuous observables how to patch it in api.patch? Any help appreciated. 2. Are there any cleanup function when component unmounts?
Does this library have an SSR output? If not, will there be in the future?
Consider an example like this, in TypeScript: ```ts const state = signal({ foods: ["pizza", "beer", "cake", "more pizza"], numFoods: wire($ => state.foods($).length), }); ``` There's a problem with this: inference...
I tried to prototype an implementation of `map` here - and it "works", but not the way we need. https://codesandbox.io/s/try-haptic-0-10-e9le1?file=/src/map.js The problem here is the `return newNodes` statement at the...
How do you define a type for a signal-based model? The best pattern I could find thus far is something like this: ```ts const Todo = (state: { title: string,...
A couple of suggestions for the example in the README. 1. Add `/** @jsx h */` to the top - just to be explicit, and so newbs don't have to...
Tests
The reactive state library has a lot of new features/fixes over previous versions. These should be tested. Here are some initial tests to have: - Errors during creation shouldn't impact...
There's no proper introduction to Haptic at all right now. I've put off writing documentation for a very long time. I need to also _delete_ the examples/ folder. It's blocked...
There should be a dev bundle of Haptic. This can carry features that would normally be too costly in size or performance to include in the normal bundle. Here's a...
just wanted to let you know @fabiospampinato found out there is a signal cleanup bug with using the standard JSX transform https://twitter.com/luwes/status/1574536326418149376 fixing it in this lib would probably mean...