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

Load global style on demand #145

Open
dmitry opened this issue Jan 30, 2019 · 0 comments
Open

Load global style on demand #145

dmitry opened this issue Jan 30, 2019 · 0 comments

Comments

@dmitry
Copy link

dmitry commented Jan 30, 2019

I'd like to show GraphiQL with it's global styles. At the moment there are just one main.css file in ReactQL and it contains all the global styles (even if you are not loaded this component with it's style). How to load ~graphiql/graphiql.css only when the graphiql component is loaded, on demand?

Another use case could be: load component with it's global style when changing context to logged in state, to split auth/unauth route components. But it's additionally takes into account not just CSS, but also components itself.

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