Hacker News new | ask | show | jobs
by tored 1724 days ago
You can use SSE with PHP to propagate changes.
1 comments

That would be a building block to achieve something similar.

Implementing this would however smear your logic all over your client and server and require careful plumbing. SSE doesn't come without caveats either.

The suggested approach here is to abstract away from that plumbing and move to a more declarative, composable expression. Whether you want that or not really depends. I see this as a specialized paradigm to solve a specific category of problems.

You can avoid that just using SSE to notify (no data) the frontend to rerender, you can still render everything in the backend.