dracor-org / dracor-frontend

Frontend for the DraCor API
https://dracor.org
MIT License
4 stars 6 forks source link

Fix lazy-loading of APIDoc #308

Open cmil opened 2 months ago

cmil commented 2 months ago

When navigating to the API page (/doc/api) for the first time after the frontend has been loaded the error

A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.

occurs and the page is not rendered. The page renders when reloading the /doc/api route though.

cmil commented 2 months ago

Aș preliminary fix we do not lazy-load APIDoc for now. We should find a way to enable it again though.