1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-05 02:41:07 +02:00

[#2523] fixed realtime dart api preview example

This commit is contained in:
Frangu Madalin 2023-05-21 21:00:24 +03:00 committed by GitHub
parent 1c63ae1324
commit 8921712821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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