logoalt Hacker News

yde_javatoday at 11:43 AM2 repliesview on HN

How and when do your components update in such an architecture?


Replies

tobyhinloopentoday at 1:05 PM

View triggers an event -> Controller receives event, updating the model as it sees fit -> Controller calls render to update views

Model knows nothing about controller or views, so they're independently testable. Models and views are composed of a tree of entities (model) and components (views). Controller is the glue. Also, API calls are done by the controller.

So it is more of an Entity-Boundary-Control pattern.

gr4vityWalltoday at 11:48 AM

From what I can tell, they do full page reloads when visiting a different page, and use Preact for building UIs using components. Those components and pages then get rendered on the server as typical template engines.