You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collection name, description, etc. disappear for a moment and then come back when the "Add Sketch" modal is opened.
Expected Behavior
Opening the modal should not change the content behind it.
Steps to reproduce
Steps:
Go to the collection details page for a collection that you own.
Click "Add Sketch".
This is a result of having a single isLoading state for all API calls. While we are fetching the list of sketches, the code acts as if it is fetching the collection itself -- even though that API call already completed successfully.
It can be fixed by modifying some of these conditionals:
There is no possibility that this.props.collection would be the wrong collection (ie. stale state from a previous collection view), as the selector looks specifically for the collection matching the provided collectionId.
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
The collection name, description, etc. disappear for a moment and then come back when the "Add Sketch" modal is opened.
Expected Behavior
Opening the modal should not change the content behind it.
Steps to reproduce
Steps:
This is a result of having a single
isLoading
state for all API calls. While we are fetching the list of sketches, the code acts as if it is fetching the collection itself -- even though that API call already completed successfully.It can be fixed by modifying some of these conditionals:
p5.js-web-editor/client/modules/User/components/Collection.jsx
Lines 216 to 227 in 1c05241
There is no possibility that
this.props.collection
would be the wrong collection (ie. stale state from a previous collection view), as the selector looks specifically for the collection matching the providedcollectionId
.p5.js-web-editor/client/modules/User/components/Collection.jsx
Line 531 in 1c05241
The text was updated successfully, but these errors were encountered: