Fork me on GitHub
#om
<
2018-05-29
>
eraserhd15:05:46

How does one troubleshoot Om not updating for a state change?

matthavener20:05:39

@eraserhd om.next or om.core?

eraserhd20:05:31

Not using the IQuery stuff, though.

matthavener20:05:40

doesn’t that just re-render the whole root every change then? or you’re calling set-state! ?

eraserhd20:05:52

I am calling update-state! in the component that's introduced the trouble, but otherwise the state is a mapgraph database.

eraserhd20:05:31

The component is a clone of material UI's drop-down menu, designed to allow loading the options asynchronously.

eraserhd20:05:16

The problem I'm having specifically is that, if I wait for the options to load while it is open and select one that loaded, the UI doesn't refresh.

eraserhd20:05:58

If I select one that existed before, it does refresh. I've added printlns which tell me that in both cases I'm updating the data correctly.