Closed ncronquist closed 2 weeks ago
The primary change involves updating the event listener in the flatfileEventListener
function to listen for the "file:created" event instead of the "upload:completed" event. This adjustment affects how and when the listener triggers, ensuring it responds to the creation of a file rather than the completion of an upload. This change is applied across multiple documentation snippets.
Files | Change Summary |
---|---|
_snippets/guides/documents/document-actions.mdx , _snippets/guides/guest_sidebar/block1.mdx |
Updated flatfileEventListener to listen to "file:created" instead of "upload:completed". |
sequenceDiagram
participant User
participant EventSource
participant flatfileEventListener
User->>EventSource: Upload file
EventSource->>flatfileEventListener: Trigger "file:created" event
flatfileEventListener->>EventSource: Process file creation
_snippets/guides/guest_sidebar/block1.mdx
[formatting] ~17-~17: Did you mean “?” (MULTIPLE_PUNCTATION_MARKS_1) Context: ... console.log(updateSpace.data.metadata?.sidebarConfig); // Additional co...
_snippets/guides/guest_sidebar/block1.mdx (2)
`7-7`: The event listener update from "upload:completed" to "file:created" is correctly implemented. --- `34-34`: The TypeScript event listener update is correctly implemented and type-safe._snippets/guides/documents/document-actions.mdx (2)
`7-7`: The JavaScript implementation of the event listener for "file:created" is correct and integrates well with the API. --- `40-40`: The TypeScript implementation of the event listener for "file:created" is correct, type-safe, and well-integrated with the API.