
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@rematch/select
Advanced tools
Selectors plugin for Rematch.
npm install @rematch/select
import selectorsPlugin from '@rematch/select'
import { init } from '@rematch/core'
const select = selectorsPlugin()
init({
plugins: [select]
})
selectors: { [string]: (state, ...params) => any }
Selectors are read-only snippets of state.
{
name: 'cart',
state: [{
price: 42.00,
amount: 3,
}],
selectors: {
total(state) {
return state.reduce((a, b) => a + (b.price * b.amount), 0)
}
}
}
note: selector state does not refer to the complete state, only the state within the model
Selectors can be called anywhere within your app.
import { select, getState } from '@rematch/core'
select.cart.total(getState())
Selectors can also be used with memoization libraries like reselect.
import { createSelector } from 'reselect'
{
selectors: {
total: createSelector(
state => state.reduce((a, b) => a + (b.price * b.amount), 0)
)
}
}
FAQs
Selectors plugin for Rematch
We found that @rematch/select 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.