question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using only specific loader type without importing whole spinner

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ThomasBemcommented, Sep 17, 2018

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! 👍

0reactions
davidhu2000commented, Mar 1, 2019

hmm, @alexmironof can you open a new issue? This feels like a different issue that the current issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found