Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add signals middleware #1220

Merged
merged 25 commits into from
Feb 3, 2025
Prev Previous commit
Next Next commit
wip
silesky committed Jan 30, 2025
commit 56814216feb4808c748fd8be94319c41a1059f28
7 changes: 0 additions & 7 deletions packages/signals/signals/src/plugin/signals-plugin.ts
Original file line number Diff line number Diff line change
@@ -92,14 +92,7 @@ export class SignalsPlugin implements Plugin, SignalsAugmentedFunctionality {
* @param example
*```ts
* class MyMiddleware implements SignalsMiddleware {
* private unstableGlobalSettings!: SignalsMiddlewareContext['settings'];
*
* load({ unstableGlobalSettings, analytics }: SignalsMiddlewareContext) {
* this.settings = unstableGlobalSettings;
* }
*
* process(signal: Signal) {
* // drop signal if it does not match the filter list
* if (
* signal.type === 'network' &&
* signal.data.action === 'request' &&