Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

clientOnlyNotFromTanstack.tsx

12 lines319 Bytes

1// This should NOT be transformed because ClientOnly is not from @tanstack/*-router
2import { ClientOnly } from 'some-other-package'
3​
4export function MyComponent() {
5 return (
6 <div>
7 <ClientOnly fallback={<div>Loading...</div>}>
8 <div>This should remain as-is</div>
9 </ClientOnly>
10 </div>
11 )