Can you force a React state update?
Summary The issue described is a classic stale closure problem combined with a race condition. A user selects a new project, which dispatches an action to update the global state. However, the asynchronous function LoadRevitVersion is invoked immediately using the state variable from the current render cycle. Because React state updates are asynchronous, the LoadRevitVersion … Read more