You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
This commit introduces the notion of a “result” data type, which
encapsulates all of the state needed to be passed to a compiled template
in order to successfully re-render with an existing element.
Rather than returning a document fragment, `render()` now returns this
result type. For compatibility, consumers of this API will need to
use the `fragment` property of the result rather than the result
directly.
In order to re-render, you can pass the last result as the `lastResult`
option, and it will use that element and morph to update.
One small additional change: contextual elements must now be passed in
the options hash. We decided to make this change as the list of
arguments was growing unwieldy, and we wanted to make this durable to
changes in the future. We will also investigate incorporating block
params into the options hash.
0 commit comments