Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

My state didn't update correctly

$
0
0

Hey everyone,
I using react hook and cordova-plugin-bluetooth-serial to communicate with bluetooth devices.


I’m forgot to setData after I push new element to temp1 array but Data still update when new data received. I also have a problem when I trying setData([ ]), it not change value immediately and when new data received, Data will recover the same array before I clear it, current value in Data array also lost.
Sorry for my English.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>