Skip to content

Commit

Permalink
chore: update turbo & add suspense boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
njm222 committed Jan 18, 2024
1 parent ea96edd commit 063097f
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 55 deletions.
8 changes: 5 additions & 3 deletions apps/tessellator/src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React from "react";
import React, { Suspense } from "react";
import { Loader } from "@tessellator/ui";
import dynamic from "next/dynamic";

Expand Down Expand Up @@ -47,8 +47,10 @@ export default function Page() {
return (
<DefaultLayout>
<View className="fullscreenView">
<AboutScene />
<Common />
<Suspense>
<AboutScene />
<Common />
</Suspense>
</View>
<BackNavigationButton />
<SocialLinks />
Expand Down
8 changes: 5 additions & 3 deletions apps/tessellator/src/app/live/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React from "react";
import React, { Suspense } from "react";
import { Loader } from "@tessellator/ui";
import dynamic from "next/dynamic";

Expand Down Expand Up @@ -48,8 +48,10 @@ export default function Page() {
return (
<DefaultLayout>
<View className="fullscreenView" orbit>
<LiveScene />
<Common />
<Suspense>
<LiveScene />
<Common />
</Suspense>
</View>
<ClickToStart />
<BackNavigationButton />
Expand Down
8 changes: 5 additions & 3 deletions apps/tessellator/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React from "react";
import React, { Suspense } from "react";
import { Loader } from "@tessellator/ui";
import dynamic from "next/dynamic";

Expand Down Expand Up @@ -46,8 +46,10 @@ export default function Page() {
return (
<DefaultLayout>
<View className="fullscreenView" orbit>
<LandingScene />
<Common />
<Suspense>
<LandingScene />
<Common />
</Suspense>
</View>
<SocialLinks />
</DefaultLayout>
Expand Down
8 changes: 5 additions & 3 deletions apps/tessellator/src/app/visualizer/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React from "react";
import React, { Suspense } from "react";
import { Loader } from "@tessellator/ui";
import dynamic from "next/dynamic";

Expand Down Expand Up @@ -51,8 +51,10 @@ export default function Page() {
return (
<DefaultLayout>
<View className="fullscreenView" orbit>
<VisualizerScene />
<Common />
<Suspense>
<VisualizerScene />
<Common />
</Suspense>
</View>
<WelcomeSpotifyUser />
<Player />
Expand Down
5 changes: 3 additions & 2 deletions apps/tessellator/src/components/canvas/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {
forwardRef,
HTMLAttributes,
MutableRefObject,
Suspense,
useImperativeHandle,
useRef,
} from "react";
Expand All @@ -21,7 +22,7 @@ import { Three } from "../../helpers/Three";
export type CommonProps = { color?: ColorRepresentation };

export const Common = ({ color = "#000" }: CommonProps) => (
<>
<Suspense>
{color && <color args={[color]} attach="background" />}
<ambientLight intensity={3} />
<directionalLight intensity={5} position={[2.5, 2, 12]} />
Expand All @@ -31,7 +32,7 @@ export const Common = ({ color = "#000" }: CommonProps) => (
)}
<AdaptiveDpr pixelated />
<AdaptiveEvents />
</>
</Suspense>
);

export type ViewProps = HTMLAttributes<HTMLDivElement> & {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"prettier": "^2.7.1",
"turbo": "^1.11.1"
"turbo": "^1.11.3"
},
"packageManager": "[email protected]",
"dependencies": {}
Expand Down
80 changes: 40 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12706,47 +12706,47 @@ tunnel-rat@^0.1.2:
dependencies:
zustand "^4.3.2"

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.1.tgz#fc9c2e578bd2d270b9942b11750a519a39850c57"
integrity sha512-JmwL8kcfxncDf2SZFioSa6dUvpMq/HbMcurh9mGm6BxWLQoB0d3fP/q3HizgCSbOE4ihScXoQ+c/C2xhl6Ngjg==

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.1.tgz#77ba7f16106dc6e48acad03ce37ccf41d2851017"
integrity sha512-lIpT7nPkU0xmpkI8VOGQcgoQKmUATRMpRhTDclz6j/Px7Qtxjc+2PitKHKfR3aCnseoRMGkgMzPEJTPUwCpnlQ==

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.1.tgz#40458e4db3c7b56b6347a42d9e4aab43acdcf197"
integrity sha512-mHFSqMkgy3h/M8Ocj2oiOr6CqlCqB6coCPWVIAmraBk+SQywwsszgJ69GWBfm7lwwJvb3B1YN1wkZNe9ZZnBfg==

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.1.tgz#3eb32d42851dbe7fb9627de29687171af2c20295"
integrity sha512-6ybojTkAkymo1Ig7kU3s2YQUUSRf3l2qatPZgw3v4OmFTSU2feCU1sHjAEqhHwEjV1KciDo1wRl1gjjyby4foQ==

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.1.tgz#b30bd6bd113fee6e455e96f99cf4cc069ef4964b"
integrity sha512-ytWy6+yEtBfv6nbgCKW6HsolgUFAC1PZGMPzbqRGnCm2eLVWhDuwO1Yk7uq4cvdrpXcXgOMcPEoJZxUCDbeJaQ==

[email protected].1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.1.tgz#9e152b30232ada57144004f0ff7939933ae0d57d"
integrity sha512-O04DdJoRavOh/v9/MM5wWCEtOekO4aiLljNZc/fOh853sOhid61ZRSEYUmS9ecjmZ/OjKqedIfbkitaQ77c4xA==

turbo@^1.11.1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.1.tgz#1a779ee58382397e2f4c538bc0f15a820081ba8c"
integrity sha512-pmIsyTcyBJ5iJIaTjJyCxAq7YquDqyRai6FW2q0mFAkwK3k0p36wJ5yH85U2Ue6esrTKzeSEKskP4/fa7dv4+A==
[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz#fb51f6fa030ee7a169d383b5f4f7641df6a3bdb8"
integrity sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw==

[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz#f936cc7ba5565bd9be1ddc8ef4f15284044a63a5"
integrity sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg==

[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz#86f56a91c05eea512a187079f7f7f860d8168be6"
integrity sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg==

[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz#0001dab6ded89154e2a5be21e87720daba953056"
integrity sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw==

[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz#8d03c4fd8a46b81f2aecf60fc9845674c84d15a8"
integrity sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA==

[email protected].3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz#cc436d1462f5450e97f985ba6d8d447272bb97db"
integrity sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw==

turbo@^1.11.3:
version "1.11.3"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.3.tgz#3bd823043585e1acfe125727bcecd4f91ef2103b"
integrity sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA==
optionalDependencies:
turbo-darwin-64 "1.11.1"
turbo-darwin-arm64 "1.11.1"
turbo-linux-64 "1.11.1"
turbo-linux-arm64 "1.11.1"
turbo-windows-64 "1.11.1"
turbo-windows-arm64 "1.11.1"
turbo-darwin-64 "1.11.3"
turbo-darwin-arm64 "1.11.3"
turbo-linux-64 "1.11.3"
turbo-linux-arm64 "1.11.3"
turbo-windows-64 "1.11.3"
turbo-windows-arm64 "1.11.3"

tween-functions@^1.2.0:
version "1.2.0"
Expand Down

1 comment on commit 063097f

@vercel
Copy link

@vercel vercel bot commented on 063097f Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tessellator-web – ./apps/tessellator

tessellator-web-git-main-njm222.vercel.app
tessellator-web-njm222.vercel.app
tessellator-web.vercel.app

Please sign in to comment.