How does shared="true" work? #304
Unanswered
RibeyeOnTheBone
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
could you strip the the markup down and share it? seems the example above is broken somehow - it's enough to provide everything below the fx-fore element - we do not need the whole html page - make sure to put your code within a code block. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Root First child Grand child |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to follow the Modularisation process. First issue is, I am putting shared="true" on the fx-instance in the root. It is exposed to the first child, but the child below that is not seeing it.
On the 2nd level imported fx-fore the use of the fx-instance is throwing this, which I think means its not seeing the fx-instance
fore.js:20255 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at Array.values ()
at Array.from ()
at FxModel.getInstance (fore.js:20255:31)
at FxModel.getDefaultInstance (fore.js:20239:17)
at FxModel.getInstance (fore.js:20274:19)
at FxModel.getDefaultInstance (fore.js:20239:17)
at FxModel.getInstance (fore.js:20274:19)
at FxModel.getDefaultInstance (fore.js:20239:17)
at FxModel.getInstance (fore.js:20274:19)
at FxModel.getDefaultInstance (fore.js:20239:17)
I am not finding a shared="true" example in the demos, which are very comprehensive.
Ideally I would like for each child to be passed a node as its context, but I only see that described for fx-control
My test files follow
MAIN
<script type="module" src="https://cdn.jsdelivr.net/npm/@jinntec/fore@latest/dist/fore.js"></script><!doctype html>
fx-output ref="."
fx-fore src="./testA.html
TESTA.html
TestA.html
fx-fore src="./testB.html
TEXTB.html
TestB.html
Beta Was this translation helpful? Give feedback.
All reactions