added option to remove single registered hook handler

This commit is contained in:
Gani Georgiev
2023-05-29 14:50:38 +03:00
parent 97f29e4305
commit 9d8df8d05d
3 changed files with 103 additions and 19 deletions
+4
View File
@@ -4,6 +4,10 @@
- Added VK OAuth2 provider ([#2533](https://github.com/pocketbase/pocketbase/pull/2533); thanks @imperatrona).
- Renamed `Hook.Reset()` -> `Hook.RemoveAll()`.
- `Hook.Add()` and `Hook.PreAdd` now returns a unique string identifier that could be used to remove the registered hook handler via `Hook.Remove(handlerId)`.
## v0.16.4-WIP