zulip/docs/tutorials
Anders Kaseorg b9e62c7af8 page_params: Split out state data for realm.
For spectators, the chunk of page_params that originates from
do_events_register isn’t assigned until ui_init.js.  That means the
TypeScript type of page_params is mostly a lie during module load
time: reading a parameter too early silently results in undefined
rather than the declared type, with unpredictable results later on.

We want to make such an early read into an immediate runtime error,
for both users and spectators consistently, and pave the way for
runtime validation of the page_params type.  As a second step, split
out the subset of fields that pertain to the entire realm.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-15 10:22:52 -08:00
..
index.md docs: Convert reST index pages to Markdown. 2021-08-20 06:22:42 -07:00
life-of-a-request.md docs: Fix HTTP methods for /users endpoint. 2023-10-03 12:43:49 -07:00
new-feature-tutorial.md page_params: Split out state data for realm. 2024-02-15 10:22:52 -08:00
reading-list.md dev docs: Update Neil Green link in the reading list. 2021-11-30 14:36:29 -08:00
screenshot-and-gif-software.md docs: Document additional screenshot and gif software. 2023-10-12 12:58:20 -07:00
shell-tips.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
writing-views.md docs: Optimize /api links to skip trailing slash redirect. 2024-02-14 21:06:03 -05:00