
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@rematch/loading
Advanced tools
Adds automated loading indicators for effects to Rematch. Inspired by dva-loading.
See an example below using a loading indicator within a button.
import React from 'react'
import { dispatch } from '@rematch/core'
import AwesomeLoadingButton from './components/KindaCoolLoadingButton'
const LoginButton = (props) => (
<AwesomeLoadingButton onClick={props.submit} loading={props.loading}>
Login
</AwesomeLoadingButton>
)
const mapToProps = state => ({
submit: () => dispatch.login.submit(),
loading: state.loading.models.login,
submitting: state.loading.effects.login.submit,
})
export default connect(mapState)(App)
In the above case:
login model is runninglogin.submit is runningSee a demo

Install @rematch/loading as a dependency.
npm install @rematch/loading
Configure loading.
import { init } from '@rematch/core'
import createLoadingPlugin from '@rematch/loading'
// see options API below
const options = {}
const loading = createLoadingPlugin(options)
init({
plugins: [loading]
})
The loading reducer defaults to the name of "loading".
If you would like to change this, use the name option.
{ name: 'load' }
In which case, loading can be accessed from state.load.global.
A shortlist of actions. Named with "modelName" & "actionName".
{ whitelist: ['count/addOne'] })
A shortlist of actions to exclude from loading indicators.
{ blacklist: ['count/addOne'] })
FAQs
Loading indicator plugin for Rematch
We found that @rematch/loading demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.