Using only specific loader type without importing whole spinner
See original GitHub issueHi, is there any way to load only one specific loader without the whole spinner being bundled. Something like what lodash
did, for example:
import BarLoader from 'react-spinners/bar-loader';
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:11 (7 by maintainers)
Top Results From Across the Web
package downloaded without dist/css · Issue #124 - GitHub
I went ahead and looked into node_modules/react-loader-spinner/dist/loader and there was no folder named "css" with the specified files in ...
Read more >javascript - Getting an error while importing Loader from 'react ...
You just need to import that specific loader you want, as there are many of them that react-loader-spinner exports.
Read more >The Four ways to Create Loading Spinners in an Angular App
In this post we went through four ways to create spinners in your Angular application: raw HTML and CSS pre-Angular spinner, spinner component,...
Read more >react-loader-spinner - npm
Start using react-loader-spinner in your project by running `npm i ... Newer version just import css file from node modules to app.js ...
Read more >How to implement global loaders using HTTP Interceptors
How to implement global loaders using HTTP Interceptors. Web applications are by nature asynchronous and have to communicate to the server.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We came back to our app recently where we use one of your spinners as our main loading animation. Updated to 0.4.3 and changed the import like you said and now our bundle size dropped by 50KB.
Just wanted to say thanks! 👍
hmm, @alexmironof can you open a new issue? This feels like a different issue that the current issue.