lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
627 stars 52 forks source link

Infinite loop with IStateUpdater #101

Closed aiba closed 2 years ago

aiba commented 2 years ago

Looks like (satisfies? IStateUpdater (fn [] ...)) is true, so if you call updater with a function, you get an infinite loop because (fn spread-updater [y] ...) will also satisfy IStateUpdater, and then updater will recurse forever.

lilactown commented 2 years ago

@aiba yeah that should be calling u instead of updater