question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How i use 'withChangesForTables' in my project, of the best way ?

See original GitHub issue

Hello friends, i’m used Watermelon DB in my project react native >= 0.60, and i have a question, how i use ‘withChangesForTables’ in my project, of the best way ?

i’m try this:

import { useDatabase } from '@nozbe/watermelondb/hooks'

 export default function Lists() {
 const database = useDatabase()

 database.withChangesForTables(['lists'], () => {
    /// anything
 })
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Skullcancommented, Dec 17, 2021

Never got around it anymore. Will give it a shot again when our pipeline clears a bit =)

0reactions
KrisLaucommented, Dec 16, 2021

@alexandrumic @uellpalma @Skullcan Did you guys ever figure out how to use it? I looked through the docs but it was really unclear and had no examples haha

EDIT: I got it to work but its not debouncing now

Read more comments on GitHub >

github_iconTop Results From Across the Web

How i use 'withChangesForTables' in my project, of the best ...
i'm used Watermelon DB in my project react native >= 0.60, and i have a question, how i use 'withChangesForTables' in my project,...
Read more >
withChangesForTables & experimentalSubscribe usage #1229
Would love to get some help with using the withChangesForTables. ... This code is in my sync provider which is wrapped around my...
Read more >
Changelog - WatermelonDB documentation - GitHub Pages
Changelog. All notable changes to this project will be documented in this file. Contributors: Please add your changes to CHANGELOG-Unreleased.md ...
Read more >
How i use withChangesForTables in my p.. - W3coded.com
Learn More about : How i use withChangesForTables in my project, of the best way. Increase your Programming Knowledges by use w3Coded. Swipe...
Read more >
WatermelonDB | Frontend Framework library
You can install using 'npm i @nozbe/watermelondb' or download it from GitHub, npm. ... have the least restrictions, and you can use them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found