Commit 77ed5a2
docs(live_view_hook): clarify connect_info requirements and rescue rationale
Expand the moduledoc to explain what each connect_info key provides
and that the hook still works when keys are omitted.
Add a comment to the try/rescue in get_connect_info_if_root/2 explaining
why we rescue broadly (Bandit is optional and we must never crash the
LiveView process).
Co-Authored-By: OpenCode <noreply@opencode.ai>1 parent 2e9fe8c commit 77ed5a2
2 files changed
Lines changed: 15 additions & 3 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
| |||
0 commit comments