Skip to content

Complex path leads to unresolved cross reference despite working scoping #1773

Answered by msujew
antoinelilly asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @antoinelilly,

So generally, it should not matter how many references you attempt to resolve in a single expression chain. In fact, since you run the full document builder beforehand, each reference is resolved first independently and then cached. When accessing the ref value, you're actually just accessing that cached value.

As for the error: I'm actually not entirely sure what could be the issue here. I would need a reproducible example for that. One thing that can be improved in your code is to execute the document builder only once with all documents (that's why the document builder accepts an array). However, that shouldn't influence the behavior of the linking, it's only a perfo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by antoinelilly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants