In ReactJS inside the constructor consumers set the initial state like this: this.state = {whatever: true}. We added the init method to emulate the constructor concept and due to typing issues we created initializeState but seriously, no.
Changes
Eliminate initializeState from the face of the planet.
Update state setter to utilize _state
Update bridge.initializeState to return without doing anything if the state is already initialized.
Motivation
In ReactJS inside the constructor consumers set the initial state like this:
this.state = {whatever: true}
. We added theinit
method to emulate theconstructor
concept and due to typing issues we createdinitializeState
but seriously, no.Changes
initializeState
from the face of the planet._state
bridge.initializeState
to return without doing anything if the state is already initialized.