()
| 61 | } |
| 62 | |
| 63 | export function loadData() { |
| 64 | const id = +store.route.paths[1]; |
| 65 | return requestData(id) |
| 66 | .catch(id && (() => requestData())); |
| 67 | /* Catching in order to retry without an id if the id is invalid. |
| 68 | * Errors will be shown in showUnhandledError. */ |
| 69 | } |
| 70 | |
| 71 | async function requestData(id) { |
| 72 | const [data] = await Promise.all([ |
no test coverage detected