Automatic deployment of PR to test server #4

Merged
ansv7779 merged 11 commits from branch-pr-deployment into main 2025-06-04 07:56:18 +02:00
Showing only changes of commit 6542cee415 - Show all commits

View File

@ -17,7 +17,7 @@ function App() {
useEffect(() => {
const controller = new AbortController();
document.startViewTransition(() => {
withViewTransition(() => {
return client
.GET("/profile", { signal: controller.signal })
.then(({ data, response }) => {
@ -70,4 +70,9 @@ function splashScreen(extraContent: string) {
);
}
function withViewTransition(f: () => Promise<unknown>): void {
if (document.startViewTransition) void document.startViewTransition(f);
else void f();
}
export default App;