export default {
id: 'data-loader',
initial: 'load',
on: {
OPEN: {
target: 'load',
},
ERROR: {
target: 'disconnected',
LOAD: [
{
target: 'idle',
cond: 'loaded',
target: 'loading',
],
INVALIDATE: [
target: 'invalidating',
states: {
load: {},
invalidating: {},
loading: {
SUCCESS: {
target: 'error',
idle: {},
error: {
RETRY: {
disconnected: {
};