Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ export function defaultModuleTypeProvider(
},
};
}
case '@tanstack/react-virtual': {
return {
kind: 'object',
properties: {
/*
* Many of the properties of `useVirtualizer()`'s return value are incompatible, so we mark the entire hook
* as incompatible
*/
useVirtualizer: {
kind: 'hook',
positionalParams: [],
restParam: Effect.Read,
returnType: {kind: 'type', name: 'Any'},
knownIncompatible: `TanStack Virtual's \`useVirtualizer()\` API returns functions that cannot be memoized safely`,
},
},
};
}
}
return null;
}
3 changes: 2 additions & 1 deletion fixtures/view-transition/src/components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function Component() {
<p>
<img
src="https://react.dev/_next/image?url=%2Fimages%2Fteam%2Fsebmarkbage.jpg&w=3840&q=75"
width="300"
width="400"
height="248"
/>
</p>
</ViewTransition>
Expand Down
10 changes: 6 additions & 4 deletions packages/react-art/src/ReactFiberConfigART.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,15 @@ export function preloadInstance(type, props) {
return true;
}

export function startSuspendingCommit() {}
export function startSuspendingCommit() {
return null;
}

export function suspendInstance(instance, type, props) {}
export function suspendInstance(state, instance, type, props) {}

export function suspendOnActiveViewTransition(container) {}
export function suspendOnActiveViewTransition(state, container) {}

export function waitForCommitToBeReady() {
export function waitForCommitToBeReady(timeoutOffset) {
return null;
}

Expand Down
Loading
Loading