hedgedoc/src/hooks/common
Tilman Vatteroth 880e542351
Add note loading boundary (#2040)
* Remove redundant equal value

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add NoteLoadingBoundary to fetch note from API before rendering

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Improve debug message for setHandler

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add test for boundary

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Use common error page for note loading errors

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Fix tests

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Format code

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Add missing snapshot

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Reformat code

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-05-11 12:47:58 +02:00
..
use-app-title.ts Add browser meta tags for favicon and title (#1746) 2022-01-02 19:35:39 +01:00
use-application-state.ts Switch the base framework from Create React App to Next.JS 2021-12-30 14:43:25 +01:00
use-apply-dark-mode.ts Collected minor changes from #837 (#962) 2021-01-23 21:01:53 +00:00
use-array-string-url-parameter.ts Switch the base framework from Create React App to Next.JS 2021-12-30 14:43:25 +01:00
use-bind-pointer-movement-event-on-window.ts Replace splitter e2e test with unit test 2022-04-10 01:42:26 +02:00
use-effect-with-catch.ts Refactor abcframe 2022-04-02 21:45:31 +02:00
use-frontend-base-url.ts Switch the base framework from Create React App to Next.JS 2021-12-30 14:43:25 +01:00
use-is-dark-mode-activated.ts Add application state hook (#1308) 2021-06-11 15:21:24 +02:00
use-note-markdown-content.ts Upgrade to CodeMirror 6 (#1787) 2022-02-13 11:14:01 +00:00
use-note-title.ts Adapt react-client to use the real backend API (#1545) 2022-04-15 23:03:15 +02:00
use-on-input-change.ts Refactor login components and adjust login API routes (#1678) 2021-12-11 01:32:38 +01:00
use-single-string-url-parameter.ts Switch the base framework from Create React App to Next.JS 2021-12-30 14:43:25 +01:00
use-trimmed-note-markdown-content-without-frontmatter.ts Add note loading boundary (#2040) 2022-05-11 12:47:58 +02:00