[Spike] SDK: Develop React Hook for dotCMS UVE #31134
Labels
OKR : Documentation
Owned by Jamie
OKR : Technical User Experience
Owned by Freddy
Priority : 3 Average
Team : Scout
Triage
Type : Task
Parent Issue
#30943
Overview
Create a React hook to streamline interactions with dotCMS, focusing on editor mode. This hook will manage subscriptions and notify the editor of page loads and URL changes.
Background
Currently, a similar hook exists within our examples; however, this hook should be officially provided as part of the SDK. By doing so, we aim to enhance the developer experience, making it easier and more efficient for developers to integrate and set up a page with dotCMS. Providing this hook through the SDK will streamline the process, reducing setup time and complexity, and allowing developers to get up and running as quickly as possible.
Task
Develop a React hook that:
Ensure the hook:
fetchResponse
andparams
as inputs.Document the hook’s usage, including:
fetchResponse
andparams
).Ensure all methods used in the hook are part of the public API for flexibility in custom implementations.
Update relevant examples to incorporate the new hook.
Proposed Objective
Technical User Experience
Proposed Priority
Priority 3 - Average
Acceptance Criteria
Acceptance Criteria
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
Challenges and Considerations
Compatibility Across React Versions:
Public API Accessibility:
Efficient Subscription Management:
Fallback and Error Handling:
Documentation and Developer Guidance:
Performance Impact:
Backward Compatibility:
Pseudo-Code Example
The text was updated successfully, but these errors were encountered: