From 939275ab761f59bc7b5141eead7e74a5fa8884c1 Mon Sep 17 00:00:00 2001 From: Edoardo Cavazza Date: Mon, 6 May 2024 13:01:03 +0200 Subject: [PATCH] Make `onRequest` and `onResponse` protected methods. --- .changeset/strong-walls-visit.md | 5 +++++ src/App.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/strong-walls-visit.md diff --git a/.changeset/strong-walls-visit.md b/.changeset/strong-walls-visit.md new file mode 100644 index 0000000..6abeb7c --- /dev/null +++ b/.changeset/strong-walls-visit.md @@ -0,0 +1,5 @@ +--- +"@chialab/synapse": patch +--- + +Make `onRequest` and `onResponse` protected methods. diff --git a/src/App.tsx b/src/App.tsx index e1a9fdd..d6d18ff 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -470,7 +470,7 @@ 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. @@ -478,5 +478,5 @@ export class App extends Component { * @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) {} }