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
When there is no project information, many parts of the editor try to load the project config. But when there is an error getting the project information the editor keeps trying to load the project which causes an infinite loop of requests to load the project.
When data is being retrieved from the api it handles the error and displays a notification, but the next render tries to reload the same api call since the value is still undefined.
This change gives a null value for data in the state for the values that are loaded without arguments and adds helper functions that trigger the api calls if the value is undefined but not if it is null. This makes it simpler for the UI to use the state without having to know and handle the null state and still allow for lazy loading of the data.
fixes#128
Steps to reproduce:
npx @blinkk/editor.dev
in a folder that just has aviews/partials
directoryObserve attached screenshot
The text was updated successfully, but these errors were encountered: