This page lists the pkg:read decl and pkg:discuss decl blocks of the root contract. They sit together because discuss is drawn inside read's document screen and reads read's derives.
Read (lines 79-106)
Name | Kind | Meaning |
|---|---|---|
| state | Text typed in the open-site sheet |
| state | Error shown under that field |
| state | Bumped on every edit and every new sheet visit |
| state | The revision that the pending submission was made at |
| derive | True when the sheet is on top and the two revisions match, so a late reply for an edited draft is ignored |
| mutation, | Validates the typed URL through |
| state | Pull to refresh counter. A new value makes sources drop their caches |
| state |
|
| task, |
|
| state | Search text of the directory sheet |
| derive | All entries of the read tab's stack |
| derive | The ref of each |
| derive | The ref of the reader context: the last |
| derive | The server of the loaded page whose ref is |
| derive | The top read entry only, so covered detail routes make no requests |
| derive | The uid of a visible |
| derive | The uid of a visible |
| derive |
|
| resource | One page per stacked document. See Loading pages |
| resource | The space's document tree |
| resource | Author profile pages |
All three resources use else empty(), so screens read a typed zero value while loading.
Discuss (lines 107-120)
Name | Kind | Meaning |
|---|---|---|
| state | Pull to refresh counter for comments, added to |
| state | Reply text in a thread |
| state | Text in the compose sheet |
| state | Comment id the reply targets, |
| derive | Refs of loaded documents on the context server, plus the ref of a visible |
| derive |
|
| derive |
|
| derive | Profile name, else key name, else short id of the current account |
| resource | Comment listings per document. See Discuss: loading and posting |
| resource | Thread pages |
| mutation, | Signs and publishes a comment |
| derive |
|
Actions that write these
Read's actions are at lines 281-327 (readShowOpenSite, readEditSite, readSubmitSite, readSiteAfterOpen, readClockStep, readRetry, readRefresh, readDirRetry, readAuthorRetry, readOpenDir, readDirSearch, readDirClose, readDirOpen). Discuss's are at lines 328-365 (discussRefresh, discussRetry, discussEdit, discussEditCompose, discussSetReply, discussPost, discussAfterPost, discussCancelCompose, discussOpenCreate).
Related
State, refresh and stale-reply patterns: epochs, the minute clock and the revision check used here
Navigation and routes: the stack these derives read
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime