Loving Tina? ⭐️ us on GitHubStar

Docs

Learn

v.Latest
Introduction
Core Concepts
Querying Content
Editing
Customizing Tina
Going To Production
Media
Drafts
Guides
Further Reference
    Before Reaching Out...

    First Steps – Debugging

    1. tina-lock.json – check your Tina lock-file is up to date. You can manually update it by running the CMS locally with tinacms dev (typically this is a part of your dev run command). This resolves the majority of user issues related to indexing. Learn more.
    2. TinaCloud indexing – you can re-index a branch via the TinaCloud dashboard if you're still running into indexing problems that aren't resolved with an up to date tina-lock.json.

    Best Practices

    • Keep your Tina client abstracted from UI code – keeping a clean distinction between TinaCMS content fetches and the rest of your application helps you isolate whether a problem is related to Tina or in your application.
    • Caching – TinaCloud has caching layers for your content, and it's likely your framework and hosting service have caching layers as well. We aim to make using Tina as painless as possible with common services, but these interactions can be complex. If you're running into problems, try taking out any custom caching layers first.
    • Styling the editor – custom tailwind classes can't be used for custom components in the TinaCMS Editor. This is partially by design to help avoid conflicts with your application, especially in Visual Editing scenarios. Design custom editor components with this in mind.
    • Isolating schema definitions – TinaCMS generates code (typing information, queries, related infrastructure) based on your provided schema. If you're importing schema definitions from a seperate file, make sure that file only contains the schema definition / custom components. Additional content will also be parsed for code generation, which may not always be desirable.

    Reaching Out

    Last Edited: March 11, 2025