Skip to content

Commit 817a0cf

Browse files
authored
Merge branch 'main' into test/svelte-query-createMutation-nth-assertions-shorthand-props
2 parents 3f73f82 + af50368 commit 817a0cf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/react/load-more-infinite-scroll/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ function Example() {
5050
})
5151

5252
React.useEffect(() => {
53-
if (inView) {
53+
if (inView && hasNextPage && !isFetchingNextPage) {
5454
fetchNextPage()
5555
}
56-
}, [fetchNextPage, inView])
56+
}, [inView, hasNextPage, isFetchingNextPage, fetchNextPage])
5757

5858
return (
5959
<div>

packages/query-devtools/src/Devtools.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,6 +3342,10 @@ const stylesFactory = (
33423342
margin: 0;
33433343
font-size: ${font.size.xs};
33443344
line-height: ${font.lineHeight.xs};
3345+
max-width: 100%;
3346+
white-space: pre-wrap;
3347+
overflow-wrap: anywhere;
3348+
word-break: break-word;
33453349
}
33463350
33473351
& pre {

0 commit comments

Comments
 (0)