Skip to content

Commit

Permalink
improve diag log
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 3, 2024
1 parent 5cc047d commit 6f9ed1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/components/AssetsDataGrid/AssetsDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type AssetsDataGridProps = {
const boxHeight = 280

export function AssetsDataGrid(props: AssetsDataGridProps): React.JSX.Element {
console.log(`render AssetsDataGrid.tsx Elapsed: ${measureTiming()}`)
console.log(`render AssetsDataGrid.tsx. Elapsed: ${measureTiming()}`)

useEffect(() => {
console.log(`render AssetsDataGrid.tsx: DONE. Elapsed: ${measureTiming()}`)
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/DevTools/DevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import _ from 'lodash'
import { Profiler, StrictMode } from 'react'
import { seconds } from '../../lib/dev'

const strict = true
const profile = true
const strict = false
const profile = false

export function DevTools({
id,
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/GameSessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type GameSessionProviderProps = {
export function GameSessionProvider(
props: GameSessionProviderProps,
): React.JSX.Element {
console.log(`render GameSessionProvider.tsx`)
console.log(`render GameSessionProvider.tsx. Elapsed: ${measureTiming()}`)
const gameSession = useGameSession(props.storedData)

useEffect(() => {
Expand Down

0 comments on commit 6f9ed1e

Please sign in to comment.