flexsurfer
flexsurfer
``` 03-02 20:52:21.055 26669 26718 I ReactNativeJS: contact #js {:id 0x044d7cffa7800a8a79e56819d56b9e651996078b20d3c932e274d1d1b714e1e6c73a5116695bbc690e10a705273619dcb9cb3fb42ab1dbecbfa076145707a62e69, :name syro.stateofus.eth, :ensVerified false, :ensVerifiedAt 1583178738, :lastENSClockValue 0, :ensVerificationRetries 0, :alias Excitable Attractive Wombat, :identicon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAAnElEQVR4nOzW0QmDMBRA0bZklq7RoTqHQ7mGy8RfMWK8Jur7uOdTJFwehJeUc37F83k6YJtZhFmEWYRZRGo/Yhin1Zf/79t4ZtBpmUWYRbz331u9bhk9J+i0zCLMIvBOLO/UFYJOyyzCLKKyE0vnbiLdpEGnZRZhFlHZiUdelb3+WQo6LbMIswi8E+8RdFpmEWYRZhFmEXMAAAD//zfqI4ZJZpxpAAAAAElFTkSuQmCC, :lastUpdated 0, :systemTags...
``` (fx/merge cofx {:dispatch [::process response-js]} (handle-contact (-> contact (clj-bean/->clj) (data-store.contacts/
``` (fx/merge cofx {:dispatch [::process response-js]} (handle-contact (-> contact (js->clj :keywordize-keys true) (data-store.contacts/
``` 03-03 12:37:53.044 9889 9969 I ReactNativeJS: chats #js {:id status-chinese, :name status-chinese, :color #887af9, :active true, :chatType 2, :timestamp 1583235472735, :lastClockValue 1583235475741, :deletedAtClockValue 0, :unviewedMessagesCount 1, :members nil, :membershipUpdateEvents...
so `process-response` should be optimized
``` 03-03 12:48:38.940 9889 9969 I ReactNativeJS: chats #js {:id testt, :name testt, :color #887af9, :active true, :chatType 2, :timestamp 1583236118722, :lastClockValue 1583236118121, :deletedAtClockValue 0, :unviewedMessagesCount 7, :members nil, :membershipUpdateEvents...
hm one thought about dispatch-later is that it visible when there are heavy computations in views and subs, but if we use dispatch we have these calculations only once when...
i feel like using subscriptions for chat view is kinda wrong ? and this thing also bothers me https://github.com/status-im/status-react/blob/f3df8b2ec89f8403d2eb81e9e10859b0d783e9ef/src/status_im/ui/components/list/views.cljs#L218 and things like this https://github.com/status-im/status-react/blob/f5488e1f61eb87c374a23a357d057a624a642e46/src/status_im/subs.cljs#L825 so for every new message we...
parametrised subscriptions doesn't look good, like https://github.com/status-im/status-react/blob/f5488e1f61eb87c374a23a357d057a624a642e46/src/status_im/subs.cljs#L850 and https://github.com/status-im/status-react/blob/f5488e1f61eb87c374a23a357d057a624a642e46/src/status_im/subs.cljs#L1663 because they duplicate subscriptions and last one doesn't look good because we call status-go inside subscription , brrrr
worst case with background and contacts signal have been fixed, so I updated description and removed high priority and release labels