> For the complete documentation index, see [llms.txt](https://docs.jigx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jigx.com/building-apps-with-jigx/data/data-lifecycles-in-jigx.md).

# Data lifecycles in Jigx

Understanding the data lifecycle in a Jigx solution is essential to help you plan your data calls and when and why to make them. The diagrams below describe when and why data is loaded when a jig is accessed.

### Navigating to a Jig for the first time

<figure><img src="https://1245694154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F974dgqxfbgR9q4tCkGgb%2Fuploads%2Fmy7qnQcyMR4B67HclpDi%2Fdata-lifecycle-first.png?alt=media&amp;token=c4be9c88-afee-4fe2-ba19-4853d612881c" alt=""><figcaption></figcaption></figure>

### Navigating to the same jig a second time

<figure><img src="https://1245694154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F974dgqxfbgR9q4tCkGgb%2Fuploads%2FPEcYb1Ylc3p5NRxwuek7%2Fdata-lifecycle-second.png?alt=media&amp;token=a20336d8-d44c-404f-8397-5d2a7449e69a" alt=""><figcaption></figcaption></figure>

### Editing the record

<figure><img src="https://1245694154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F974dgqxfbgR9q4tCkGgb%2Fuploads%2FqUmyMfxFuKq61Lw7ReuW%2Fdata-lifecycle-editing.png?alt=media&amp;token=49916545-55c6-48b5-a7aa-2703867da525" alt=""><figcaption></figcaption></figure>

### Navigating back to view the edited record

<figure><img src="https://1245694154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F974dgqxfbgR9q4tCkGgb%2Fuploads%2F8vVby4oP6LMljX1zhBdG%2Fdata-lifecycle-view-edit.png?alt=media&amp;token=f779c078-41b0-4800-a08d-6d6feb520e52" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jigx.com/building-apps-with-jigx/data/data-lifecycles-in-jigx.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
