Closed pwFoo closed 3 years ago
At the moment, there isn't one. Could you tell me a bit more about the use case you're thinking about?
I try to use Reef.Store
to fill data to dom elements (not a component, no template return value!).
Maybe similar to reef-checked, reef-selected and reef-value, but for element innerHTML or a custom attribute to fill with data from Store.
Because there is no html data binding like reef-data
or reef-content
I try to build it with a event listener to trigger dom updates after values are changed.
UPDATE
Update ${expression}
in dom elements would be great, but I think much more complex than javascript based content / innerHTML updates in DOM.
I don't return all the markup by component templates and try to fill / update html layouts based on store
and some reef components.
Maybe two event listener?
setter
functionThere's a few concerns here...
@cferdinandi Is there a limit how much (small) components could / should be used on a site? As example small one dom node elemet components?
No limit, no. There are a lot of factors that could impact performance, including how deeply nested components are and how frequently data is being updated.
Hi, is there a event for data changes ? I try to learn how to add event listener for reactive data changes in reef data / store.
I know the documentation with pre defined events like
reef:render
andreef.emit()
to trigger events, but how to hook into changed data?