---
# System prepended metadata

title: Untitled

---

## Events
- BOOTSTRAPPING
- Data changes within a lifecycle 
- CREATE_SCHEMA_CUSTOMIZATION
- SOURCING_NODES_LIFECYCLE
- CONSUMING_DATA
- SCHEMA_INFERENCE
- PAGE_MUTATION
- RUN_QUERIES (and render pages)
- CHECKING_FOR_NODE_MUTATIONS (if changed, GOTO SOURCING_NODES_NEXT_PASS)
- WRITE_ARTIFACTS
- BUILD_COMPLETE
- WAITING

- CREATE_SCHEMA_CUSTOMIZATION_NEXT_PASS
- SOURCING_NODES_NEXT_PASS
    GOTO CONSUMING_DATA

- CREATE_SOURCE_NODES_TRANSACTION

- COMMIT_SOURCE_NODES_TRANSACTION
    GOTO CONSUMING_DATA

- REQUEST_NODE_MUTATION_OUTSIDE_TRANSACTION
- CREATE_IMPLICIT_SOURCE_NODES_TRANSACTION
- FILLING_BUS
- MUTATE_NODE_INSIDE_IMPLICIT_TRANSACTION
    - debounce timeout
    - bus full
- GOTO COMMIT_SOURCE_NODES_TRANSACTION


- Page mutation
	- Start creating pages
	- on create pages
	- Finish creating pages 
- Run page and static queries 
## Data changes outside of a lifecycle (State 2)
- If an action was called outside a lifecycle or a transaction it is put in a batch queue
	- Warn that mutating data outside of transaction or lifecycle 
	- Implicit transaction
		- Batch and start work
		- Finish work and complete
- Else 
	- ***Go back to State 1***
- Inference 
- Page mutation
	- Start creating pages
	- on create pages
	- Finish creating pages 
- Run page and static queries 
	- **Resolver that has a side effect** 
		- ***All*** new data was created (batch side effects)
			- ***Go to inference*** 
		- Exit loop case (rage against the state machine)
			- ***If more than 10 then die*** 
		- No new data 
			- Build is complete


- WAITING
- REFRESHING