-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Fix #376 #484
Fix #376 #484
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3881de1:
|
Hey @Looky1173 thanks for opening this. Size-wise is fine. Can you add a test case for this? |
@cristianbote Oops, I forgot about the tests! 😅 I've just fixed the ones failing and added two additional tests. |
Hi @cristianbote, could you please approve the PR workflows so we could see if all tests pass? (They do pass on my local machine, they should do here too.) |
It's all looking great @Looky1173! Thanks for your contribution |
Hi, this causes a bug where if multiple instances of global styles are needed, the last one overwrites all, preventing multiple global styles from being applied. I think this could be fixed by giving |
Hi @gr0uch, how would we identify different instances of |
@gr0uch Edit: I've just realised that |
adding an optional second parameter would work. one other way would be to use the drawback is that |
Since |
yeah allowing a prop to be passed would probably work, though less automatic than checking calling location via stack trace. |
I need to look into it to understand it better before having an opinion on it 🤔 give me a few |
Resolves #376.
@cristianbote This PR would increase the bundle size of goober but only by a few bytes.
Here is a CodeSandbox demo where
createGlobalStyles
works correctly with themes.