We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f68ac commit e8ea96fCopy full SHA for e8ea96f
examples/vite/src/App.tsx
@@ -65,7 +65,15 @@ function App() {
65
: posts.data?.map((post) => (
66
<div key={post.id}>
67
<a>
68
- <h2 onClick={() => setPostId(post.id)}>{post.title}</h2>
+ <h2
69
+ onClick={() => setPostId(post.id)}
70
+ onMouseOver={() => {
71
+ postQuery.client.ensureData({ params: { id: post.id } });
72
+ commentsQuery.client.ensureData({ search: { postId: post.id } });
73
+ }}
74
+ >
75
+ {post.title}
76
+ </h2>
77
</a>
78
79
<button
0 commit comments