Skip to content

Commit

Permalink
Make onRequest and onResponse protected methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed May 6, 2024
1 parent 3da5f36 commit 939275a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-walls-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chialab/synapse": patch
---

Make `onRequest` and `onResponse` protected methods.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,13 @@ export class App extends Component {
* @param newValue The new request object.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onRequest(oldValue: Request | undefined, newValue: Request) {}
protected onRequest(oldValue: Request | undefined, newValue: Request) {}

/**
* Response changed hook.
* @param oldValue The previous response object.
* @param newValue The new response object.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onResponse(oldValue: Response | undefined, newValue: Response) {}
protected onResponse(oldValue: Response | undefined, newValue: Response) {}
}

0 comments on commit 939275a

Please sign in to comment.