Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR Regression #473

Open
Barzi-Ahmed opened this issue Feb 2, 2025 · 0 comments
Open

HMR Regression #473

Barzi-Ahmed opened this issue Feb 2, 2025 · 0 comments

Comments

@Barzi-Ahmed
Copy link

There is a possible HMR regression where, when navigating between routes, there is a flash-of-missing-font, and also navigation is slow, clunky, not smooth.

One version: 1.1.427
Vite version: 6.0.11

RenderMode: ssr

I think the following is irrelevant, but it helps, this is how I load and use my font, also in older versions of One, this regression issue was not there.

import '../../public/tamagui.css'
import { scan } from 'react-scan'
import { LoadProgressBar } from 'one'
import { isWeb } from 'tamagui'
import { useFonts } from 'expo-font'
import { Tamagui } from '~/ui/Tamagui'

export const Base_Layout: React.FC<{ children: React.ReactNode }> = (
	{ children },
) => {
	useFonts({
		Inter:
			new URL('../../public/Inter-Variable.woff2', import.meta.url).href,
	})

	if (typeof window !== 'undefined') {
		scan({
			enabled: false,
			log: false,
		})
	}

	return (

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant