Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a tunnel right away? #14

Open
badtant opened this issue Sep 4, 2019 · 1 comment
Open

Using a tunnel right away? #14

badtant opened this issue Sep 4, 2019 · 1 comment

Comments

@badtant
Copy link

badtant commented Sep 4, 2019

So I have the code below.
SomeComponentThatRendersToTunnel will try to put something inside footer-tunnel but it wont show on first render. My guess is that it's because it's below what will try to put something inside it. If I move the tunnel above the component it does render.

Is this a bug or expected? Is there a way to get around it?

<TunnelProvider>
                <>
                        <SomeComponentThatRendersToTunnel />
                        <div className={styles.flexFooter}>
                            <TunnelPlaceholder id="footer-tunnel" />
                        </div>
                </>
</TunnelProvider>
@badtant
Copy link
Author

badtant commented Sep 16, 2019

https://codesandbox.io/s/keen-bhaskara-vs4dl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant