mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
improving error handling
This commit is contained in:
parent
4795968eb7
commit
63fbcb4b0a
@ -88,7 +88,11 @@ function useItemsManager(initialItems: Item[]): {
|
||||
{
|
||||
pending: `loading ${layer.name} ...`,
|
||||
success: `${layer.name} loaded`,
|
||||
error: `error while loading ${layer.name}`
|
||||
error: {
|
||||
render( {data} ) {
|
||||
return `${data}`
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
if (result) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user