Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7e1bcd4

Browse files
Merge pull request #82 from oslabs-beta/john/nextjs
John/nextjs
2 parents a7c4911 + 7169882 commit 7e1bcd4

File tree

9 files changed

+24
-15
lines changed

9 files changed

+24
-15
lines changed

‎package-react/example/server/models/finance.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
[
2+
{
3+
"text": "test",
4+
"liked": false,
5+
"replies": [],
6+
"createComment": false,
7+
"timestamp": "Jul 24, 2024",
8+
"username": "Guest",
9+
"picture": "guest"
10+
},
211
{
312
"text": "With the current market volatility, I'm exploring more into crypto. It's a high-risk, high-reward scenario, but diversification is key.",
413
"liked": false,

‎package-react/example/server/models/technology.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"text": "Agree on the dev experience. Also, for those looking to optimize their app's performance, React Query's automatic data fetching on window refocus or network reconnect is a neat feature. Reduces the need for manual refetching and ensures data is always fresh.",
4-
"liked": false,
4+
"liked": true,
55
"createComment": false,
66
"timestamp": "Mar 4, 2024",
77
"username": "Marcus Holloway",

‎package-react/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package-react/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "git+https://github.com/oslabs-beta/react-query-rewind.git"
2020
},
21-
"version": "2.1.11",
21+
"version": "2.1.12",
2222
"description": "React Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
2323
"keywords": [
2424
"react",

‎package-react/rollup.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
extensions: ['.js', '.jsx', '.ts', '.tsx'],
3333
exclude: 'node_modules/**'
3434
}),
35-
// terser(), // Minifies the bundles
35+
terser(), // Minifies the bundles
3636
]
3737
};
3838

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { ErrorBoundaryasReactErrorBoundary, FallbackProps } from 'react-error-boundary';
2+
import { ErrorBoundary, FallbackProps } from 'react-error-boundary';
33

44
// Fallback component to display when an error is caught
55
const ErrorFallback: React.FC<FallbackProps> = ({ error }) => {
@@ -11,12 +11,12 @@ const ErrorFallback: React.FC<FallbackProps> = ({ error }) => {
1111
};
1212

1313
// ErrorBoundary component wrapping the ErrorFallback
14-
const ErrorBoundary: React.FC<{ children: React.ReactNode }> = ({ children }) => {
14+
const CustomErrorBoundary: React.FC<{ children: React.ReactNode }> = ({ children }) => {
1515
return (
16-
<ReactErrorBoundary FallbackComponent={ErrorFallback}>
16+
<ErrorBoundary FallbackComponent={ErrorFallback}>
1717
{children}
18-
</ReactErrorBoundary>
18+
</ErrorBoundary>
1919
);
2020
};
2121

22-
export default ErrorBoundary;
22+
export default CustomErrorBoundary;

‎package-react/src/index.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useRef, useState } from 'react';
22
import Subscription from './Subscription';
33
import TimeTravel from './TimeTravel';
4-
import ErrorBoundary from './ErrorBoundary';
4+
import CustomErrorBoundary from './CustomErrorBoundary';
55

66
function ReactQueryRewind() {
77
const [timeTravel, setTimeTravel] = useState(false);
@@ -49,13 +49,13 @@ function ReactQueryRewind() {
4949
}, []);
5050

5151
return (
52-
<ErrorBoundary>
52+
<CustomErrorBoundary>
5353
{timeTravel ? (
5454
<TimeTravel />
5555
) : (
5656
<Subscription handleMessages={handleMessages} />
5757
)}
58-
</ErrorBoundary>
58+
</CustomErrorBoundary>
5959
);
6060
}
6161

‎package-svelte/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "git+https://github.com/oslabs-beta/react-query-rewind.git"
2020
},
21-
"version": "1.1.8",
21+
"version": "1.1.9",
2222
"description": "Svelte Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
2323
"keywords": [
2424
"svelte",

‎package-vue/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-query-rewind/vue-query-rewind",
3-
"version": "1.1.9",
3+
"version": "1.1.10",
44
"description": "Vue Query Rewind is a library that helps developers debug applications that use React Query (ie TanStack Query) by letting them time travel through state changes directly in their chrome dev tools",
55
"type": "module",
66
"files": [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /