Skip to content

Commit

Permalink
Convert travis CI badge to GitHub workflow badge
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings committed Sep 9, 2024
1 parent 7d3a906 commit 6b10cf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/setup.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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",
Expand Down

0 comments on commit 6b10cf0

Please sign in to comment.