import { Magnetar } from '@magnetarjs/core' ; import { CreatePlugin } from '@magnetarjs/plugin-simple-store' ; const generateRandomId = ( ) => Math . random ( ) . toString ( ) ; const local = CreatePlugin ( { generateRandomId } ) ; export const magnetar = Magnetar ( { stores : { local } , localStoreName : 'local' , executionOrder : { read : [ 'local' ] , write : [ 'local' ] , delete : [ 'local' ] , } , } ) ;