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

Multiple panes on a page #42

Open
tol-is opened this issue Jan 5, 2021 · 0 comments
Open

Multiple panes on a page #42

tol-is opened this issue Jan 5, 2021 · 0 comments

Comments

@tol-is
Copy link

tol-is commented Jan 5, 2021

Hi, I'm trying to add multiple tweak panes on a page, independent of each other, just separate demos stacked.

I figured I can pass a container via settings and this attaches the pane to a custom element, but what seems to happen is after the first instance, all tweak-panes are mounted to the same container regardless of their respective hook configuration.

I'm not sure if that's a bug, a feature or if I'm missing something, but I would certainly appreciate any help.

You can see a demo of the issue here:
https://scramble-git-demos.a7sc11u.vercel.app/

And here's my repo (main.jsx and typewriter.jsx) are the layouts that use useTweaks
https://github.com/a7sc11u/scramble-site/blob/demos/src/

Thanks in advance!

P.S. Thank you for putting this library together, I love it!

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