4 ms·
The API response ends up being the source of truth, in this case. If you wanted to prevent the user from updating the internal state while waiting on the API, y
by loh 5y ago
The API response ends up being the source of truth, in this case. If you wanted to prevent the user from updating the internal state while waiting on the API, you could certainly do that with a check for `updateThingRequest.status === 'pending'`.