Skip to content

How to access host app's variable/functions within a miniapp #719

Answered by jbroma
ra1nj asked this question in Q&A
Discussion options

You must be logged in to vote

you can do this through:

  1. global variable
  2. using a react context
  3. using a 3rd federated module that will be accessed in both host and mini app

I'm not sure there is a proper example for that, repack-examples repo needs an overhaul and is largely outdated. You can also check out https://github.com/callstack/super-app-showcase for some inspiration but I'm not sure there is a bidirectional flow that includes this case.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jbroma
Comment options

Answer selected by ra1nj
@ra1nj
Comment options

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