How to fix Context value changed between renders, this will cause issues in React | DevErrors