1.1.1 • Published 5 months ago

react-query-rewind v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Technologies

JavaScript TypeScript React HTML5 Webpack D3 ESLint Material UI Jest Babel

Overview

React Query Rewind introduces a powerful DevTool extension designed to work in conjunction with React Query's built-in DevTools in order to optimize time-traveling through state changes in an application. This open-source extension is tailored to enhance the debugging experience for React Query users, allowing them to explore state changes and component relationships with ease.

Getting Started

Prerequisites

  1. React Query installed and in use in your application.

  2. Install RQRewind Chrome Extension.

Installation

  1. Download npm package into your application as a dev dependency.

    npm i --save-dev react-query-rewind
  2. Import the ReactQueryRewind component into the root of your applicaiton.

    picture of importing the component

    import ReactQueryRewind from 'react-query-rewind';
  3. Place ReactQueryRewind next to the root of your application inside the QueryClientProvider component.

    ReactDOM.createRoot(document.getElementById('root')!).render(
      <QueryClientProvider client={queryClient}>
        <App />
        <ReactQueryRewind />
      </QueryClientProvider>
    );
  4. Open the Chrome DevTool Extension and start coding!

Features

  • Query States: Upon opening RQRewind in Chrome Dev Tools, you will see the Queries tab open with a drop down menu listing the query keys of all the incoming queries. Select the queries that you want to monitor, make changes on the web app, and the changes of query states will be logged as reflected by the growing number above the play bar. Use the play bar to navigate to a particular state snapshot that you would like to inspect.
  • State Diff: Toggle on the Diff button to see state changes between each snapshot highlighted. Turn on the switch on top of the page to show only parts of the state that are changed.
  • Live UI Change: As you review the state change history, there is also the option to turn on the time travel mode by clicking on the clock icon button. Under time travel mode, when visiting a logged state snapshot on RQRewindl, the UI of the app will change accordingly. Turn off time travel mode for RQRewind to continue logging future state changes.
  • Component Tree: Click on the Component Tree tab and turn on the Start Profiling switch. Click on any component on the app, and view the component tree that is rendered on the dev tools panel.

Contact Information

Austin Cavanagh - GitHub - LinkedIn - austin.cavanagh.cs@gmail.com

Emma Teering - GitHub - LinkedIn - teeringe@gmail.com

John Dunn - GitHub - LinkedIn - johnwdunn20@gmail.com

Rui Fan - GitHub - LinkedIn - rfan1986@gmail.com

Links

Medium LinkedIn

Project Link: React Query Rewind

License

MIT Link

1.1.1

5 months ago

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago