Fork me on GitHub
#re-frame
<
2017-08-12
>
captainlexington00:08:52

React and Redux have so much nonsensical boilerplate

captainlexington00:08:58

I don't appreciate you guys enough

mikethompson01:08:00

@sandbags no, hadn't seen bulma. Thanks for the pointer

sandbags08:08:44

@gadfly361 @mikethompson this https://news.ycombinator.com/item?id=14987668 is the thread, there was another called Milligram mentioned as being good

sandbags08:08:54

I don't know how much value re-com is getting from Bootstrap

sandbags09:08:49

then again i don't know how much effort it might be to shift, since you don't use the JS parts anyway...

naomarik13:08:02

i’ve just been using straight up sass since flexbox is good enough now

akiroz14:08:21

IKR? especially projects using redux thunk and projects that define actions types with "constants": const MY_ACTION = "MY_NAMESPACE.MY_ACTION" I hate this crud....

stvnmllr217:08:58

This is more of a clojure question probably, but i have a list of maps in my app-db at key :types when i click edit on a row, i want a form to show for each row, so i want to update the map for the matching row to have :editing true.

stvnmllr217:08:30

is there a idiomatic way to change maps inside arrays inside a map? appdb {:types ({:id 1 :name "first one"}, {:id 2 :name "second one"})}

stvnmllr217:08:16

i would have the id, and want to assoc a key in the matching map

stvnmllr217:08:51

Well.. i thought of the TodoMvc example, and I guess they used an atom in the component to store the editing state. So may go that way for now. but still interested if there is a better way to do the above as far as nested structures

mattly19:08:46

I actually consider reliance on bootstrap as a strike against re-com

akiroz19:08:16

@stvnmllr2 (assoc-in db [:types 0 :editing] true)? but you'll have to update by vector index instead of id.

mattly19:08:37

if I could pass in overrides for class names that had the desired properties that would help

mattly19:08:08

bulma looks saner (insofar as it doesn’t muck with anything you haven’t told it to) but it’s still a huge chunk of bytes to add to your load, even gzipped

stvnmllr220:08:08

@akiroz Thanks for the confirmation.

scknkkrer22:08:27

There is a terrible “example” about navigation on RN.

scknkkrer22:08:37

Can anyone help me about understand it ?