Thomas Heartman
|
a8206f5118
|
fix: handle loading states for project details for a single project (#8492)
This PR updates the use of references on the project details page to
handle the loading state for a single project.
Now, if a project is loading, it'll show skeleton loaders for the
relevant boxes:

I've also updated the state type we use for this to be more accurate. Shamelessly
stolen from Elm.
```ts
type RemoteData<T> =
| { state: 'error', error: Error }
| { state: 'loading' }
| { state: 'success', data: T }
```
After refactoring:

|
2024-10-21 14:27:43 +02:00 |
|