Alex

Results 15 comments of Alex

https://github.com/timolins/react-hot-toast/pull/159 ☝️☝️☝️ This PR, if merged, essentially works like this: ```tsx toast('hello', { toasterId: 'unique-id-here' }) ... ``` This way, only _that Toaster_ will be able to receive `toast`s to-and-from...

This serves 2 purposes: 1. Efficient DOM manipulation. 2. Elegantly design HTML components using Go. Working outside the browser wouldn’t need efficient DOM manipulation. So you’d just be getting the...

Visual demo / proof of concept: [coco-react-bootstrap.gif](https://user-images.githubusercontent.com/6964069/56055459-5c3df380-5d0e-11e9-8ca6-bc20e15a6d69.gif)

I was able to get embedding channels in DOM elements (like `.Click` and `.Blur` above) working. I started working on a variation of triangle numbers to catch the longest combination...

New architectural pipeline: ![image](https://user-images.githubusercontent.com/6964069/54873919-07a5f900-4d9e-11e9-9c4e-eb061d56213c.png)

Have been working heavily on the pipeline. 99% of all cases for custom (hybrid) templates have been proven (preprocessing vs. executing). Should have a branch and/or commit for this design...

Wiring up events requires listeners to be set after the template is executed by Go's HTML template engine (and our custom preprocessor stage). Here is the awesome result: A skeleton...

The pattern would look something like this: ```go func main() { coco.Globals(NewGlobals()) coco.Render(NewApp()) } ``` and ```go type Up struct { Globals } func (u Up) OnUpClick() { u.Cocos =...

![image](https://user-images.githubusercontent.com/6964069/54465747-f6277600-4739-11e9-9676-d269f277f72f.png)

Currently patching adds new listeners on the new component instance/copy. So when they're fired again, they're using the most up-to-date instance (e.g. `coco.Set(...)`). To cause updating of globals to refresh...