Add future flag for Single Fetch #1785
Annotations
10 errors
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L39
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `loaders removes _data from request.url 1`
- Snapshot - 1
+ Received + 3
- "?foo=bar"
+ {
+ "message": "Unexpected Server Error",
+ }
at Object.toMatchInlineSnapshot (__tests__/data-test.ts:39:30)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L78
expect(received).toBeTruthy()
Received: null
at Object.toBeTruthy (__tests__/data-test.ts:78:49)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L117
expect(received).toBeTruthy()
Received: null
at Object.toBeTruthy (__tests__/data-test.ts:117:49)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L159
expect(received).toBeTruthy()
Received: null
at Object.toBeTruthy (__tests__/data-test.ts:159:49)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L200
expect(received).toBeTruthy()
Received: null
at Object.toBeTruthy (__tests__/data-test.ts:200:46)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L276
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `loaders removes index from request.url 1`
- Snapshot - 1
+ Received + 3
- "?foo=bar"
+ {
+ "message": "Unexpected Server Error",
+ }
at Object.toMatchInlineSnapshot (__tests__/data-test.ts:276:30)
|
🧪 Run Primary Tests:
packages/remix-server-runtime/__tests__/data-test.ts#L310
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `loaders removes index from request.url and keeps other values 1`
- Snapshot - 1
+ Received + 3
- "?foo=bar&index=test"
+ {
+ "message": "Unexpected Server Error",
+ }
at Object.toMatchInlineSnapshot (__tests__/data-test.ts:310:30)
|
🧪 Run Primary Tests:
packages/remix-react/components.tsx#L704
TestingLibraryElementError: Unable to find an element by: [data-testid="scroll-script"]
Ignored nodes: comments, <script />, <style />
<body>
<div>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of undefined (reading 'unstable_singleFetch')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (components.tsx:704:31)
at mountMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at Object.useMemo (../../node_modules/react/cjs/react.development.js:1650:21)
at useMemo (components.tsx:703:30)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (../../node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/scroll-restoration-test.tsx:64:11)
at new Promise (<anonymous>)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
errorElement
</code>
prop on your route.
</p>
</div>
</body>
at Object.getElementError (../../node_modules/@testing-library/dom/dist/config.js:40:19)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:111:19
at Object.getByTestId (__tests__/scroll-restoration-test.tsx:69:25)
|
🧪 Run Primary Tests:
packages/remix-react/components.tsx#L704
TestingLibraryElementError: Unable to find an element by: [data-testid="scroll-script"]
Ignored nodes: comments, <script />, <style />
<body>
<div>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of undefined (reading 'unstable_singleFetch')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (components.tsx:704:31)
at mountMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at Object.useMemo (../../node_modules/react/cjs/react.development.js:1650:21)
at useMemo (components.tsx:703:30)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (../../node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/scroll-restoration-test.tsx:91:11)
at new Promise (<anonymous>)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
errorElement
</code>
prop on your route.
</p>
</div>
</body>
at Object.getElementError (../../node_modules/@testing-library/dom/dist/config.js:40:19)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:111:19
at Object.getByTestId (__tests__/scroll-restoration-test.tsx:96:25)
|
🧪 Run Primary Tests:
packages/remix-react/__tests__/scroll-restoration-test.tsx#L123
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: 0, 20
Number of calls: 0
at Object.toHaveBeenCalledWith (__tests__/scroll-restoration-test.tsx:123:26)
|
The logs for this run have expired and are no longer available.
Loading