kiyui / cycle-gtk

A simple Cycle.js GTK application prototype based on jsgtk
1 stars 0 forks source link

Helper design validation #2

Open kiyui opened 7 years ago

kiyui commented 7 years ago

Currently the way patching works is by making the h() function return reducers that will patch widgets stored in the gtkDriver.

As can be seen in #1, even very basic tasks already require custom use-case reducers via overloading a addReducer property in h() and I can imagine a use case for an updateReducer in the future.

Validations required:

kiyui commented 7 years ago

Reducer approach (make current code more efficient):

Module approach (rewrite everything):