Commit Graph

18 Commits

Author SHA1 Message Date
stan
ac41ed7768 fix: handle missing items gracefully in hooks and components
This resolves console errors when items are deleted or during undo/redo operations.

Changes:
- Added getItemById utility function that returns null instead of throwing
- Updated all item hooks to return null when items don't exist
- Added null checks in components that use these hooks
- Components now gracefully handle missing items by returning null
- Fixed TypeScript export syntax in standaloneExports.ts
- Added MUI dependencies as externals in webpack config

This fixes the "Item with id not found" errors that were occurring when:
- Using undo/redo functionality
- Items were deleted but components were still rendering
- React was unmounting components that referenced deleted items
2025-07-03 16:04:14 +01:00
Mark Mankarious
1a647062d1 feat: configures webpack build for docker image 2024-04-06 12:49:05 +01:00
Vacharanon
e8d678d191 feat: adds standalone build and a Dockerfile 2024-04-01 22:34:46 +01:00
Mark Mankarious
e7c79f0b9b refactor: simplifies library exports and includes reducers as exports 2023-11-03 13:01:17 +00:00
Mark Mankarious
0580440b28 feat: imports isopacks as separate package 2023-10-03 15:44:27 +01:00
Mark Mankarious
a1a98f288b feat: allows saving of scene 2023-08-28 21:01:56 +01:00
Mark Mankarious
109048c8d2 feat: adds link to Github repo in main menu 2023-08-28 19:32:51 +01:00
Mark Mankarious
9fb1cbf237 chore: builds isopacks separately 2023-08-21 13:47:26 +01:00
Mark Mankarious
3d0bbcbeb1 chore: changes webpack destination dir for validation 2023-08-09 09:42:24 +01:00
Mark Mankarious
fd938193f1 chore: exports validation separately to main bundle 2023-08-08 18:08:54 +01:00
Mark Mankarious
b2416f3e98 fix: resolves paths after typese are compiled 2023-08-08 16:35:06 +01:00
Mark Mankarious
38c4278e16 feat: adds utility methods on the window for debugging 2023-08-06 21:20:31 +01:00
Mark Mankarious
4da4235eda refactor: migrate away from paperjs [PHASE 2] 2023-08-05 09:14:14 +01:00
Mark Mankarious
fbf48d26ca feat: allows codesandbox to open a browser preview 2023-07-29 10:09:34 +01:00
Mark Mankarious
773473b58e refactor: integrates the renderer with react
Migrates away from using a standalone renderer and mobx for plumbing.  Previously there was a lot of manual syncing needed between the React UI and the Renderer, which added a lot of overhead and complexity. 

Scene state is now held in a store (facilitated by Zustand).  This acts as a single source of truth shared over the renderer and the UI, and both react to changes on the store.
2023-07-20 16:45:54 +01:00
Mark Mankarious
fd88787eb1 feat: allows node icon to be changed 2023-07-12 12:16:52 +01:00
Mark Mankarious
c24f903376 chore: enables webpack source map 2023-04-03 01:56:43 +01:00
Mark Mankarious
b86c76ed05 chore: enables webpack dev server 2023-03-24 23:32:36 +00:00