Skip to content

Commit efa13c3

Browse files
committed
Fixed broken Link style caused by an incorrect cache key
1 parent 8b01d0f commit efa13c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/with-react-query/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function Posts() {
122122
style={
123123
// We can access the query data here to show bold links for
124124
// ones that are cached
125-
queryClient.getQueryData(["post", post.id])
125+
queryClient.getQueryData(["posts", `${post.id}`])
126126
? {
127127
fontWeight: "bold",
128128
color: "green",

0 commit comments

Comments
 (0)