/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
export default {
id: 'data-writer',
initial: 'idle',
states: {
idle: {
on: {
PERSIST: {
target: 'persisting',
},
REMOVE: {
target: 'removing',
removing: {
SUCCESS: {
target: 'removed',
ERROR: {
target: 'error',
persisting: {
target: 'persisted',
removed: {
RESET: {
target: 'idle',
persisted: {
error: {
};