Re:Rxdb: A reactive database where you can subscribe to the ...
by rockostrich on Friday October 25, 2019 @09:49AM
(#21354887)
Isn't this the case with any interaction between 2 systems? Between a client and server, you can have logic in the client that reacts to a response from the server that triggers another request to the server.
[ Parent
| on HN ]
Re:Rxdb: A reactive database where you can subscribe to the ...
by maxmcd on Friday October 25, 2019 @09:54AM
(#21354944)
Very true, maybe I'm overthinking it? In my head: If I update full_name from first_name and last_name whenever a user table row changes, if I do this naively I will update the user on every update and trigger a continuous loop of updates.
I have certainly created infinite loops while using React's componentDidUpdate, maybe it's just important to define triggers on single attributes rather than entire database rows.