dsuryd / dotNetify

Simple, lightweight, yet powerful way to build real-time web apps.
https://dotnetify.net
Other
1.17k stars 164 forks source link

Event handler when data is changed/available? #208

Closed roozbehid-ic closed 5 years ago

roozbehid-ic commented 5 years ago

Is there such a thing available? Meaning on client side get notified when a new change is available?

I am looking for a way to store last 100 changes to a variable pushed into client, so client can always show last 100 changes.(I dont want to do it on server side because of huge size of that 100 items.)

dsuryd commented 5 years ago

Use React lifecycle method componentDidUpdate() for this.