Tinacms Developer Docs

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:

🤖🤖

  1. 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 link due to reliability issues with CLI elements.
  2. GraphQL and Visual Editing:

    • Challenges related to visual editing within TinaCMS were covered, especially concerning field metadata and the use of data-tina-field attributes 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.
  3. 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.
  4. Alternative JavaScript Frameworks:

    • The team examined the feasibility of using TinaCMS with other frameworks like SolidJS and Astro. Jeff explained that components like useTina would need modifications to work in non-React environments, as it relies on React-specific hooks and state management.
  5. 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.
  6. 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.

On this page