MCPcopy
hub / github.com/rx-angular/rx-angular / revalidate

Method revalidate

apps/ssr-isr/src/app/app.component.ts:28–37  ·  view source on GitHub ↗
(pageUrl: string)

Source from the content-addressed store, hash-verified

26 private http = inject(HttpClient);
27
28 revalidate(pageUrl: string) {
29 this.http
30 .post('/api/invalidate', {
31 token: 'MY_TOKEN',
32 urlsToInvalidate: [pageUrl],
33 })
34 .subscribe((res) => {
35 console.log('invalidate', res);
36 });
37 }
38}

Callers

nothing calls this directly

Calls 2

subscribeMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected