Davide Mancuso

Results 31 comments of Davide Mancuso

Hi there, thanks for this awesome library. The `mapType` approach works for de-serialization but not serialization back to JSON: ```typescript TypedJSON.mapType(BigInt, { deserializer: json => (json == null ? json...

the reason why the Emitter emits instructions in this way is because we don’t want to change Handebars at all - therefore we have to comply with its ways of...

simplest and most generic way is to patch IncrementalDOM’s methods so that you can register ‘onOpen’ callbacks for 'elementOpen','elementOpenEnd','elementVoid',’text’ - which return you the node once it’s available > On...

That would possible, although obviously not recommended in production due to the additional computation required to internalize the input. Agree it would be nice to be able to run everything...

Unfortunately atm I am a bit swamped with things to look into this. The versions I use are slightly different from the one in this repo for some reason, so...

That makes sense, since you're not using fs any longer. Let me know how it works - and bear in mind that full in-browser transpile+compile may get prohibitively slow for...

Are you sure you are correctly invoking the template function? It should be something like ```` IncrementalDOM.patch(someElement, templateFn, someData); ````

have a look at the [examples](https://github.com/atomictag/incremental-bars/blob/master/examples/basic/index.html) perhaps that can help clarifying things a bit

Incremental DOM wants a function and a context. But that does not mean you cannot pass options to the template, you just need to do it in a slightly different...

I use it all the time i guarantee it works - you may just need to try out a few patterns that suit your needs