logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.31k stars 406 forks source link

refactor(console): delay module loading suspense component display by 500ms #6345

Closed charIeszhao closed 1 month ago

charIeszhao commented 1 month ago

Summary

Delay the display of the suspense fallback component (daisy spinner) by 500ms, so that we won't see this much often when navigating between page routes.

Testing

Locally tested OK

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +431 Bytes

Diff by File |Name|Diff| |---|---| |packages/console/src/containers/ConsoleContent/index.tsx|:chart_with_upwards_trend: +431 Bytes|