7 June 2024
This meeting focuses on various technical challenges and approaches for integrating TinaCMS with Next.js and handling specific issues. Here are the key points discussed:
🤖🤖
Links
- Recording
- ❌ No Loop
-
TinaCMS Integration with Next.js:
- The team discussed how to link TinaCMS to a Next.js project, including approaches for local development and alternatives to
npm linkdue to reliability issues with CLI elements.
- The team discussed how to link TinaCMS to a Next.js project, including approaches for local development and alternatives to
-
GraphQL and Visual Editing:
- Challenges related to visual editing within TinaCMS were covered, especially concerning field metadata and the use of
data-tina-fieldattributes for linking page components to their editable states. Jeff explained how TinaCMS uses GraphQL to enhance content source fields with metadata for efficient inline editing.
- Challenges related to visual editing within TinaCMS were covered, especially concerning field metadata and the use of
-
React Server Components and App Router:
- They explored how TinaCMS might adapt to React’s App Router and server components, discussing the need for potential conditional client-side loading based on edit mode. Jeff noted that while server components provide benefits, TinaCMS’s visual editor requires JavaScript on the page, impacting integration with purely server-rendered setups.
-
Alternative JavaScript Frameworks:
- The team examined the feasibility of using TinaCMS with other frameworks like SolidJS and Astro. Jeff explained that components like
useTinawould need modifications to work in non-React environments, as it relies on React-specific hooks and state management.
- The team examined the feasibility of using TinaCMS with other frameworks like SolidJS and Astro. Jeff explained that components like
-
Rich Text and JSON Formatting Bugs:
- They discussed a specific issue where formatting rich text with JSON was causing rendering errors due to improper handling of bold formatting syntax. Jeff suggested testing and capturing input-output data to reproduce the bug and potentially fix parsing and stringify logic for rich text fields.
-
Upcoming Improvements and Testing:
- Playwright end-to-end testing was highlighted as a priority, along with creating example projects to improve test coverage and reliability in TinaCMS deployments.
The conversation covered ways to enhance TinaCMS’s integration and usability within Next.js, as well as addressing technical hurdles around rendering, JSON handling, and compatibility with other JavaScript frameworks.