Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant