Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Apr 19, 2023
1 parent 163fd91 commit 3bc6c25
Show file tree
Hide file tree
Showing 85 changed files with 338 additions and 384 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import dynamic from 'next/dynamic'

const DynamicComponentWithCustomLoading = dynamic(
() => import('../components/hello'),
{ loading: () => <p>...</p> },
"3rd"
)
import dynamic from 'next/dynamic';
const DynamicComponentWithCustomLoading = dynamic(()=>import('../components/hello'), {
loading: ()=><p>...</p>
}, '3rd');
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import React from 'react';
export { firaCode };
export { inter };
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import inter1 from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"400"}],"variableName":"inter1"}';
import inter2 from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{"variant":"400"}],"variableName":"inter2"}';
import inter1 from '@next/font/google/target.css?{"arguments":[{"variant":"400"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter1"}';
import inter2 from '@next/font/google/target.css?{"arguments":[{"variant":"400"}],"import":"Inter","path":"pages/test.tsx","variableName":"inter2"}';
var i = 10;
var i2 = 20;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"ABeeZee","arguments":[{}],"variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
import a from '@next/font/google/target.css?{"arguments":[{}],"import":"ABeeZee","path":"pages/test.tsx","variableName":"a"}';
const a = fn({
10: 'hello'
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[{},[]],"variableName":"inter"}';
import inter from '@next/font/google/target.css?{"arguments":[{},[]],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
const a = fn(...{}, ...[]);
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | const getStaticProps = async () => {}
2 | export { a as getServerSideProps }
2 | export { a as getServerSideProps }
: ^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This is a comment.
"use strict";
'use strict';
/**
* This is a comment.
*/ import "client-only";
*/ import 'client-only';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_INVALID_API: getServerSideProps
,-[input.js:1:1]
1 | export function getServerSideProps (){
1 | export function getServerSideProps() {}
: ^^^^^^^^^^^^^^^^^^
2 | }
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_INVALID_API: getStaticProps
,-[input.js:1:1]
1 | export function getStaticProps (){
1 | export function getStaticProps() {}
: ^^^^^^^^^^^^^^
2 | }
`----
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This is a comment.
"use strict";
'use strict';
/**
* This is a comment.
*/ import "server-only";
*/ import 'server-only';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
x NEXT_RSC_ERR_CLIENT_IMPORT: server-only
,-[input.js:8:1]
8 |
9 | import "server-only"
9 | import 'server-only'
: ^^^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "react";
export default function () {
return null;
import 'react';
'use client';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

x NEXT_RSC_ERR_CLIENT_DIRECTIVE
,-[input.js:2:1]
2 |
3 | "use client"
: ^^^^^^^^^^^^
x NEXT_RSC_ERR_CLIENT_DIRECTIVE_PAREN
,-[input.js:1:1]
1 | import 'react'
2 | ;('use client')
: ^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This is a comment.
"use strict";
'use strict';
/**
* This is a comment.
*/ import "client-only";
*/ import 'client-only';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
x NEXT_RSC_ERR_SERVER_IMPORT: client-only
,-[input.js:8:1]
8 |
9 | import "client-only"
9 | import 'client-only'
: ^^^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_INVALID_API: getServerSideProps
,-[input.js:1:1]
1 | export function getServerSideProps (){
1 | export function getServerSideProps() {}
: ^^^^^^^^^^^^^^^^^^
2 | }
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_INVALID_API: getStaticProps
,-[input.js:1:1]
1 | export function getStaticProps (){
1 | export function getStaticProps() {}
: ^^^^^^^^^^^^^^
2 | }
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { createContext } from 'react';
import { useEffect, useImperativeHandle } from 'react';
import { Component, createFactory, PureComponent, useDeferredValue, useInsertionEffect, useLayoutEffect, useReducer, useRef, useSyncExternalStore } from "react";
import { Component, createFactory, PureComponent, useDeferredValue, useInsertionEffect, useLayoutEffect, useReducer, useRef, useSyncExternalStore } from 'react';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,71 +29,71 @@
x NEXT_RSC_ERR_REACT_API: Component
,-[input.js:7:1]
7 | import {
8 | Component,
: ^^^^^^^^^
9 | createFactory,
8 | Component,
: ^^^^^^^^^
9 | createFactory,
`----

x NEXT_RSC_ERR_REACT_API: createFactory
,-[input.js:8:1]
8 | Component,
9 | createFactory,
: ^^^^^^^^^^^^^
10 | PureComponent,
8 | Component,
9 | createFactory,
: ^^^^^^^^^^^^^
10 | PureComponent,
`----

x NEXT_RSC_ERR_REACT_API: PureComponent
,-[input.js:9:1]
9 | createFactory,
10 | PureComponent,
: ^^^^^^^^^^^^^
9 | createFactory,
10 | PureComponent,
: ^^^^^^^^^^^^^
11 | useDeferredValue,
`----

x NEXT_RSC_ERR_REACT_API: useDeferredValue
,-[input.js:10:1]
10 | PureComponent,
10 | PureComponent,
11 | useDeferredValue,
: ^^^^^^^^^^^^^^^^
12 | useInsertionEffect,
12 | useInsertionEffect,
`----

x NEXT_RSC_ERR_REACT_API: useInsertionEffect
,-[input.js:11:1]
11 | useDeferredValue,
12 | useInsertionEffect,
: ^^^^^^^^^^^^^^^^^^
13 | useLayoutEffect,
12 | useInsertionEffect,
: ^^^^^^^^^^^^^^^^^^
13 | useLayoutEffect,
`----

x NEXT_RSC_ERR_REACT_API: useLayoutEffect
,-[input.js:12:1]
12 | useInsertionEffect,
13 | useLayoutEffect,
: ^^^^^^^^^^^^^^^
14 | useReducer,
12 | useInsertionEffect,
13 | useLayoutEffect,
: ^^^^^^^^^^^^^^^
14 | useReducer,
`----

x NEXT_RSC_ERR_REACT_API: useReducer
,-[input.js:13:1]
13 | useLayoutEffect,
14 | useReducer,
: ^^^^^^^^^^
15 | useRef,
13 | useLayoutEffect,
14 | useReducer,
: ^^^^^^^^^^
15 | useRef,
`----

x NEXT_RSC_ERR_REACT_API: useRef
,-[input.js:14:1]
14 | useReducer,
15 | useRef,
: ^^^^^^
16 | useSyncExternalStore
14 | useReducer,
15 | useRef,
: ^^^^^^
16 | useSyncExternalStore,
`----

x NEXT_RSC_ERR_REACT_API: useSyncExternalStore
,-[input.js:15:1]
15 | useRef,
16 | useSyncExternalStore
: ^^^^^^^^^^^^^^^^^^^^
17 | } from "react"
15 | useRef,
16 | useSyncExternalStore,
: ^^^^^^^^^^^^^^^^^^^^
17 | } from 'react'
`----
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { findDOMNode, flushSync, unstable_batchedUpdates } from "react-dom";
import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@

x NEXT_RSC_ERR_REACT_API: findDOMNode
,-[input.js:1:1]
1 | import {
2 | findDOMNode,
: ^^^^^^^^^^^
3 | flushSync,
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom'
: ^^^^^^^^^^^
`----

x NEXT_RSC_ERR_REACT_API: flushSync
,-[input.js:2:1]
2 | findDOMNode,
3 | flushSync,
: ^^^^^^^^^
4 | unstable_batchedUpdates,
,-[input.js:1:1]
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom'
: ^^^^^^^^^
`----

x NEXT_RSC_ERR_REACT_API: unstable_batchedUpdates
,-[input.js:3:1]
3 | flushSync,
4 | unstable_batchedUpdates,
: ^^^^^^^^^^^^^^^^^^^^^^^
5 | } from "react-dom"
,-[input.js:1:1]
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom'
: ^^^^^^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This is a comment.
"use strict";
'use strict';
/**
* This is a comment.
*/ import "react-dom/server";
import "react-dom/client";
*/ import 'react-dom/server';
import 'react-dom/client';
export default function() {
return null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
x NEXT_RSC_ERR_SERVER_IMPORT: react-dom/server
,-[input.js:8:1]
8 |
9 | import "react-dom/server"
9 | import 'react-dom/server'
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----

x NEXT_RSC_ERR_SERVER_IMPORT: react-dom/client
,-[input.js:10:1]
10 |
11 | import "react-dom/client"
11 | import 'react-dom/client'
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

x The "use server" directive must be at the top of the file, and cannot be wrapped in parentheses.
,-[input.js:2:1]
2 |
3 | ('use sevrer')
: ^^^^^^^^^^^^^^
,-[input.js:1:1]
1 | import 'react'
2 | ;('use sevrer')
: ^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
2 |
3 | ,-> export default class Component {
4 | | render() {
5 | | return null;
5 | | return null
6 | | }
7 | `-> }
`----
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@

x The "use server" directive must be at the top of the function body.
,-[input.js:7:1]
7 | const x = 1
8 | 'use server'
: ^^^^^^^^^^^^
9 | }
`----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

x The "use server" directive must be at the top of the file.
,-[input.js:2:1]
2 |
3 | 'use server'
: ^^^^^^^^^^^^
x The "use server" directive must be at the top of the file, and cannot be wrapped in parentheses.
,-[input.js:1:1]
1 | import 'my-module'
2 | ;('use server')
: ^^^^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import font from 'cool-fonts/target.css?{"path":"pages/test.tsx","import":"","arguments":[{"prop":true}],"variableName":"font"}';
import font from 'cool-fonts/target.css?{"arguments":[{"prop":true}],"import":"","path":"pages/test.tsx","variableName":"font"}';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import React from 'react';
export { firaCode };
export { inter };
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import firaCode from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Abel","arguments":[],"variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"path":"pages/test.tsx","import":"Inter","arguments":[],"variableName":"inter"}';
import firaCode from '@next/font/google/target.css?{"arguments":[],"import":"Abel","path":"pages/test.tsx","variableName":"firaCode"}';
import inter from '@next/font/google/target.css?{"arguments":[],"import":"Inter","path":"pages/test.tsx","variableName":"inter"}';
import React from 'react';
export { firaCode };
export default inter;
Loading

0 comments on commit 3bc6c25

Please sign in to comment.