Fork me on GitHub
#om-next
<
2018-09-22
>
rith8701:09:17

hello folks, I'm struggling a little bit with using om/update-query!.` om/update-query!` seems to update the params in IQueryParams until the next call of om/update-query!. So, even if the component is unmounted and mounted, IQueryParams still remains the same instead of going back to the default values

rith8701:09:09

is there any way for om/update-query! to update only until componentWillUnmount is called?

rith8701:09:28

also, I've tried calling om/update-query! in componentDidMount but I'm hitting this error: No queries exist for component path so maybe I'm not supposed to do that?

rith8722:09:46

heh, weird, i did a hard refresh with the same code and the om/update-query! in componentDidMount seems to work!