DEV Community

Discussion on: To pass MobX's observable array to FlatList, .slice() is needed

Collapse
 
acro5piano profile image
Kay Gosho • Edited

As far as I know, they are the same in terms of functionality.
Now I think toJS is better because it is more meaningful. Thanks!

Collapse
 
zigcccc profile image
Žiga Krašovec

doing [...mobxArr] works as well and it is quite clear & clean in my opinion

Thread Thread
 
acro5piano profile image
Kay Gosho

I think it's up to you.