Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

feat: Initialize nodes on canvas mount and improve logging#27

Merged
CocoRoF merged 1 commit into
mainfrom
hr_work
Jul 22, 2025
Merged

feat: Initialize nodes on canvas mount and improve logging#27
CocoRoF merged 1 commit into
mainfrom
hr_work

Conversation

@CocoRoF
Copy link
Copy Markdown
Collaborator

@CocoRoF CocoRoF commented Jul 22, 2025

This pull request introduces functionality to initialize and refresh nodes when the Canvas component is mounted. It integrates a new hook and ensures proper logging for debugging purposes. Below are the key changes:

Integration of useNodes Hook:

  • Added an import for the useNodes hook in Canvas.tsx to enable node-related operations.
  • Utilized the exportAndRefreshNodes function from the useNodes hook within the Canvas component to manage node initialization.

Node Initialization on Mount:

  • Introduced a useEffect hook to call exportAndRefreshNodes when the Canvas component is mounted. This ensures nodes are initialized and refreshed at the start. Additionally, added logging for successful execution and error handling to aid debugging.

@CocoRoF CocoRoF merged commit c987ea8 into main Jul 22, 2025
4 checks passed
@CocoRoF CocoRoF deleted the hr_work branch July 22, 2025 01:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant