Refactor store creation for Conveyor, Machine, Storage Unit, and Vehicle
- Changed the store creation functions to `createConveyorStore`, `createMachineStore`, `createStorageUnitStore`, and `createVehicleStore` for better clarity and consistency. - Updated the internal state management methods to maintain functionality while improving readability. - Ensured that all stores now return their respective types for better type safety.
This commit is contained in:
@@ -6,7 +6,7 @@ function AisleInstances() {
|
||||
const { aisles } = useAisleStore();
|
||||
|
||||
useEffect(() => {
|
||||
console.log('aisles: ', aisles);
|
||||
// console.log('aisles: ', aisles);
|
||||
}, [aisles]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from 'react'
|
||||
import AisleCreator from './aisleCreator/aisleCreator'
|
||||
import AisleInstances from './Instances/aisleInstances'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user