Skip to content

Chrome Dev Tool to track hydration of next.js apps

Notifications You must be signed in to change notification settings

oslabs-beta/Next2O

Repository files navigation

Next₂O

Background

Server-side rendering frameworks built on React.js can create hydration errors that are often difficult to debug. Hydration errors can slow development time and slow website performance.

React offers hydration error warnings that lack specificity, with an additional option to suppress hydration errors, although that doesn’t solve the problem and applications pushed to production with errors can experience performance erosion.

How It Works

Download the Next2O extension from the Chrome store Make sure you are on the tab where you have your application open (the one you like to debug hydration errors) Click on the Next2O extension to open Click the 'Debugging' tab to check for errors

Screenshot 2023-02-11 at 11 31 56 AM

If there are DOM nodes with hydration errors due to SSR mismatch, they'll appear in red. Description of the error(s) is listed below the DOM Tree Visualizer Go to the 'Performance' tab to run Lighthouse for Performance metrics. This displays the SEO, Performance and Accessibility scores. Click on ‘Save Data’ to store your performance data for Analysis

Screenshot 2023-02-11 at 11 32 41 AM

Detailed description for each metric from the lighthouse audit is displayed for quick overview and understanding.

Contribute

If you have any issues using our debugging tool, please submit an issue on GitHub. You're welcome to fork our repo and test changes yourself, but we ask that contributors make an official pull request for any features they'd like to add, or bug fixes.

Website

next2o.org

About

Chrome Dev Tool to track hydration of next.js apps

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages