cboard
cboard copied to clipboard
Inconsistencies with Board Navigation
When navigating between boards in the app, inconsistencies arise with the execution of functions in the didMount lifecycle method. These inconsistencies occur because the board is mounted before the await getApiObjects()
function is completed, allowing the user to navigate to other boards in the meantime.
Once the getApiObjects() function is completed, the didMount function continues and executes functions such as changeBoard and history.replace. However, these functions can save incorrect boards in the nav history, cause the user to automatically return to the previous board, or display the 404 page.
These inconsistencies persist both when the app is first opened and when returning from the settings page, as the board is mounted every time.