These are chat archives for ractivejs/ractive

6th
Jun 2017
Chris Reeves
@evs-chris
Jun 06 2017 00:36
I think npm recently improved monorepo support
I vaguely remember seeing that as a bullet point on a node 8 post
Joseph
@fskreuz
Jun 06 2017 13:26
In simple terms, what's the difference between a "reference" and a "keypath". I'm under the impression that a keypath is a form of reference.
Like a reference points to some data. A keypath is one form of a reference, pointing to data at a specific location.
Chris Reeves
@evs-chris
Jun 06 2017 14:00
a keypath is an explicit path to a piece of data for an instance
keypaths exist both in and out of the template
a reference exists in a template, and may be a keypath
it may also be a relative keypath, a limited form of computation, or a special variable
the limited computation is known as a reference expression e.g user.issues[current][priority]
Joseph
@fskreuz
Jun 06 2017 14:14
:thumbsup:
Joseph
@fskreuz
Jun 06 2017 17:32

What does step 3 in reference resolution do exactly?

Grab the current virtual node from the template hierarchy.

Chris Reeves
@evs-chris
Jun 06 2017 17:54
Resolution happens from a point in the template and then recurses upward
so that's just getting the next node with a context, or the first for the first pass
Joseph
@fskreuz
Jun 06 2017 17:59
ahh :thumbsup:
That sounds like a simpler explanation :D