diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml deleted file mode 100644 index af5c6a9..0000000 --- a/.github/workflows/setup.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Setup - -on: - workflow_call: - -jobs: - setup: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - cache: 'yarn' - - run: yarn install diff --git a/README.md b/README.md index 0085ebb..2fa25bd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # Why Did You Render [![npm version](https://badge.fury.io/js/%40welldone-software%2Fwhy-did-you-render.svg)](https://badge.fury.io/js/%40welldone-software%2Fwhy-did-you-render) -[![Build Status](https://travis-ci.com/welldone-software/why-did-you-render.svg?branch=master)](https://travis-ci.com/welldone-software/why-did-you-render) +[![Build Status](https://github.com/welldone-software/why-did-you-render/actions/workflows/main.yml/badge.svg)](https://github.com/welldone-software/why-did-you-render/actions/workflows/main.yml) ![NPM](https://img.shields.io/npm/l/@welldone-software/why-did-you-render?style=flat) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@welldone-software/why-did-you-render) [![Coverage Status](https://coveralls.io/repos/github/welldone-software/why-did-you-render/badge.svg?branch=add-e2e-tests-using-cypress)](https://coveralls.io/github/welldone-software/why-did-you-render?branch=add-e2e-tests-using-cypress) @@ -198,7 +198,7 @@ EnhancedMenu.whyDidYouRender = { ```js withPropsOnChange(withPropsOnChange(withStateHandlers(withPropsOnChange(withState(withPropsOnChange(lifecycle(withPropsOnChange(withPropsOnChange(onlyUpdateForKeys(LoadNamespace(Connect(withState(withState(withPropsOnChange(lifecycle(withPropsOnChange(withHandlers(withHandlers(withHandlers(withHandlers(Connect(lifecycle(Menu))))))))))))))))))))))) ``` - + ## Options Optionally you can pass in `options` as the second parameter. The following options are available: - `include: [RegExp, ...]` (`null` by default) @@ -323,7 +323,7 @@ You can provide a function that harvests additional data from the original react * If you only track pure components using `trackAllPureComponents: true` then you would only track either ([React.PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent) or [React.memo](https://reactjs.org/docs/react-api.html#reactmemo)), maybe none of your components are pure so none of them will get tracked. * Maybe you have no issues * Try causing an issue by temporary rendering the whole app twice in it's entry point: - + `index.js`: ```jsx const HotApp = hot(App); diff --git a/package.json b/package.json index fa9400c..f785833 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "bump version": "npm version major/minor/patch" }, "resolutions": { - "eslint@^8": [ + "eslint@^8": [ "react eslint plugins doesn't play nicely with eslint 9 so we force using eslint 8 for now" ], "source-map@^0.7.4": [ @@ -76,7 +76,7 @@ "resolutions": { "source-map-fast": "npm:source-map@^0.8.0-beta.0", "source-map": "^0.8.0-beta.0", - "string-width": "4.2.3" + "string-width": "4.2.3" }, "devDependencies": { "@babel/cli": "^7.24.7",