forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update fork #1
Merged
Merged
update fork #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* fix(examples): correct path in with-electron * Update index.js
* Add @apollo/react-hooks and @apollo/react-ssr * Migrate react-apollo to @apollo/react-hooks and Query component * Migrate direct client mutations to useMutation hook * Disable submit button when submiting a new post * Fix Show More button not updating when loading more entries * All queries with uppercase name * Remove react-apollo * Update getDataFromTree links * Fixed lint issues
* Change to unsafe * Ignore
* Created a new example for React Native web - use the latest `react-native-web` - remove unused `react-art` - remove redundant `babel-plugin-module-resolver` - remove unused `.babelrc` - add missing `app.json` (standard in React Native) - added example for rendering an `<a />` - added header examples * `yarn lint-fix`
* Only read for typescript files if there's no tsconfig * Update verifyTypeScriptSetup.ts * Remove the recursive check for TS files * Remove unused import * Updated tests * Add a check for the content of tsConfig * Clean up * utf8
* Add transparent JSX optimization. * fix duplicate React import * fix React not being imported when only a single Fragment node is present in a source module * remove babel-plugin-react-require * Fix JSX optimization for CommonJS source files.
* Add hook destructuring optimization * oops, accidentally included loose mode * inline hook destructuring optimization plugin * fix test nesting * fix lockfile * allow any react hook * Add page to stats-app with hooks
Travis CI has been incredibly unstable for months, and we never look at its status check. Let's just remove it.
change `||` to `&&` in Router.beforePopState example to match doc description
* Update to replace asPath for static pages in dev mode * Run lint-fix * Simplify test a bit
…8396) * use useSelector and useDispatch * update README * fix space and trailing comma
* Add custom profiler / tracer This captures both client/production builds and everything before and after is cpu profiled, which makes sure that the whole process instead of just webpack is included in the final report. * Update tests * Update profiling-plugin.js * Rename profiling-plugin.js to profiling-plugin.ts * Update profiling-plugin.ts * Update and rename profiling-plugin.ts to profiling-plugin.js * Update webpack-config.ts * Update profiling-plugin.js * Add types * Add missing type * Add back TypeScript linting * Remove tracing-js
Noticed a minor typo
* Fix conflict between defaultPathMap and default 404.html export,if have a page in pages/404.js * Update packages/next/export/index.js Co-Authored-By: JJ Kasper <[email protected]> * add test export-override-404
* Fix dynamic APIs with query params If you define a dynamic API such as ``` pages/ api/ [id].js ``` This api becomes available at `/api/[id]`. If you send a request with a query parameter the value of `req.query.id` will include the query string as well as the path parameter. E.g. the request to `/api/2?test=123` will result in `req.query` being ```javascript { id: "2?test=123", test: "123", } ``` instead of ```javascript { id: "2", test: "123", } ``` * Fix url parse in serverless loader * Add serverless test
* Update README.md Small typo reported on Spectrum. Kudos to @borekb * Update packages/next/README.md Co-Authored-By: Joe Haddad <[email protected]> * Update packages/next/README.md Co-Authored-By: Joe Haddad <[email protected]> * Update packages/next/README.md Co-Authored-By: Joe Haddad <[email protected]> * Update README.md * Update README.md
* Favicon should have low importance * Update index.js
Per the HTTP specification, only natural numbers may be used for caching durations. We should enforce this with a really helpful error message.
* Configure the Default Revalidate The default revalidate behavior should be configured by Next.js. Otherwise, the behavior might drift or change in non-semver compliant ways between Next.js and the builder (or other 3rd party setups). * Add additional comment
* Add SPR Dynamic Routes to Manifest This adds dynamic routes for SPR pages to the prerender manifest so we can configure the Now Builder to handle these routes as SPR routes. Otherwise, they're treated like normal `getInitialProps` pages. * Fix types
* Update Prerender Manifest * Fix typescript
## Changes - [x] Remove _app.js usage - [x] Migrate withRedux HOC to functional component - [x] Add correct display name - [x] Remove abstractions/boilerplate from example - [x] Add useInterval HOC from Dan
* Add auth0 example * Apply suggestions from code review Co-Authored-By: Joe Haddad <[email protected]> * Remove LICENSE * Add create next-app section * Update to latest @auth0/nextjs-auth0 * Update user handling * Update profile link to use <Link> * Update .env template to reflect guides * Simplify example * Update example to prefer API call (temporary hardcoded url) * Simplify state and ensure rerenders don’t race * Clear up import being commented * Make code style consistent * Update pages to reflect required auth on the client-side * Memoize the user on window * Update now.json instruction * Remove meta fields * Update docs with explanation * Update UI for auth0 example
* s/Automatic Prerendering/Automatic Static Optimization/ * Update more links
These Recipies are not regularly audited to ensure they're using the most up-to-date and suggested practices. We'll reintroduce the idea of "recipies" in the future, for now, the examples directory is a great place to start.
* Show content as soon as <style> tags are added * Add fallback removal * Add test for when unused * Ensure the function is ES5 compatible * IE support * Test it works on broken pages
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.