this.setState doesnt function ??


#1

here i create a snack;

https://snack.expo.io/@oflcad/game.js

this.setState( level: levelPersisit) comes with correct value but the state never changes ??
line number 113

any help please


#2

Hi! Thanks for uploading this snack. I don’t see how this is used in App.js so I can’t actually reproduce this. If you want to update the snack to make use of Game.js it might help. One thing I will point out right away is that eslint displays a number of warnings about undefined variables in that file, maybe one of those is preventing your code from running as you expect?


#3

I have updated the slack please check it :slight_smile:


closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.