mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-05 10:45:09 +02:00
[#2523] fixed realtime dart api preview example
This commit is contained in:
parent
1c63ae1324
commit
8921712821
@ -77,12 +77,12 @@
|
||||
|
||||
// Subscribe to changes in any ${collection?.name} record
|
||||
pb.collection('${collection?.name}').subscribe('*', (e) {
|
||||
console.log(e.record);
|
||||
print(e.record);
|
||||
});
|
||||
|
||||
// Subscribe to changes only in the specified record
|
||||
pb.collection('${collection?.name}').subscribe('RECORD_ID', (e) {
|
||||
console.log(e.record);
|
||||
print(e.record);
|
||||
});
|
||||
|
||||
// Unsubscribe
|
||||
|
Loading…
x
Reference in New Issue
Block a user