cgrand / enlivez

8 stars 0 forks source link

Day #14 #22

Closed cgrand closed 5 years ago

cgrand commented 5 years ago

States, as always. Now it's datascript that is buggy:

(d/q
  '[:find ?a ?v ?s
    :in $x
    :where
    [$x ?a]
    [(vector ?a) ?v]
    [(str ?a) ?s]]
  [[1] [2]])
#{[1 [2] "1"] [2 [2] "2"]} ; should be #{[1 [1] "1"] [2 [2] "2"]}
cgrand commented 5 years ago

known for more than a year https://github.com/tonsky/datascript/issues/262

cgrand commented 5 years ago

End of the day: I have found local workarounds for bugs (fixes for the CLJS ones have already been commited; for the Datascript one, Nikita knows) so I've been able to made progress.

Components with local states are fully working, static fragments are ok too.

In demo.clj there's a wip todo list, with click-to-edit and the ability to add new items.