Skip to content

Elegant way to trigger callback across files? #7722

Answered by hunger
aurexav asked this question in Q&A
Discussion options

You must be logged in to vote

You could also have a global component that has a bunch of interesting callbacks and properties. You can import that global object everywhere needed. That can sometimes safe a lot of typing:-)

But yes, that will probably not work here... the only other option is what you are doing: Propagate the callback manually. #7813 proposes a more elegant way to do that, let's see how that PR fares.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aurexav
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