Skip to content

Commit e58b92b

Browse files
authored
Remove react autobind (#1254)
## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> Remove react-autobind dependency - [x] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Include before/after visuals or gifs if this PR includes visual changes. - [ ] Write tests for all new functionality. - [x] Add an entry to `CHANGELOG.md` under the `## main` section.
1 parent 6de2705 commit e58b92b

4 files changed

Lines changed: 1 addition & 10 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Upgrade Vite 6 and Cypress 14 ([#970](https://github.com/maplibre/maputnik/pull/970))
1313
- Upgrade OpenLayers from v6 to v10
1414
- When loading a style into localStorage that causes a QuotaExceededError, purge localStorage and retry
15+
- Remove react-autobind dependency
1516
- _...Add new stuff here..._
1617

1718
### 🐞 Bug fixes

package-lock.json

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"react-accessible-accordion": "^5.0.1",
6161
"react-aria-menubutton": "^7.0.3",
6262
"react-aria-modal": "^5.0.2",
63-
"react-autobind": "^1.0.6",
6463
"react-autocomplete": "^1.8.1",
6564
"react-collapse": "^5.1.1",
6665
"react-color": "^2.19.3",

src/components/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// @ts-ignore - this can be easily replaced with arrow functions
2-
import autoBind from 'react-autobind';
31
import React from 'react'
42
import cloneDeep from 'lodash.clonedeep'
53
import clamp from 'lodash.clamp'
@@ -140,7 +138,6 @@ export default class App extends React.Component<any, AppState> {
140138

141139
constructor(props: any) {
142140
super(props)
143-
autoBind(this);
144141

145142
this.revisionStore = new RevisionStore()
146143
const params = new URLSearchParams(window.location.search.substring(1))

0 commit comments

Comments
 (0)