
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
react-promise-loader
Advanced tools
This is a NPM package with a component for React that will help you display the loader at use react-promise-tracker
You need to install promise loader and promise tracker packages:
npm install react-promise-loader react-promise-tracker
You can use yarn:
yarn add react-promise-loader react-promise-tracker
Wrap promises that you would like to track as in the following example:
+ import { trackPromise} from 'react-promise-tracker';
//...
+ trackPromise(
fetchUsers(); // You function that returns a promise
+ );
Then you need to add the Loader component and send data from the react-promise-tracker:
+ import { usePromiseTracker } from 'react-promise-tracker';
+ import Loader from 'react-promise-loader';
const App = () => (
<div className="app">
...
+ <Loader promiseTracker={usePromiseTracker} color={'#3d5e61'} background={'rgba(255,255,255,.5)'} />
</div>
);
export default App;
Parameter | Type | Description | Default |
---|---|---|---|
background | string | Sets the color for the background in any format that supports css | rgba(255,255,255,.5) |
color | string | Sets the color of the spinner | #000 |
promiseTracker | boolean | You need to set usePromiseTracker function from the react-promise-tracker | false |
loading | boolean | If you need to run the loader without tracking promises you should set true | false |
zIndex | number | You can change the z-index to distribute the layers correctly | 999 |
Please read through our CONTRIBUTING.md.
FAQs
This is a NPM package with a component for React that will help you display the loader at use react-promise-tracker
We found that react-promise-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.