Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

app.component.html

10 lines351 Bytes

1<p>
2 Try to mock offline behavior with the button in the devtools. You can navigate
3 around as long as there is already data in the cache. You'll get a refetch as
4 soon as you go "online" again.
5</p>
6@if (postId() > -1) {
7 <post [postId]="postId()" (setPostId)="postId.set($event)"></post>
8} @else {
9 <posts (setPostId)="postId.set($event)" />