Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
redux-back
Advanced tools
Readme
A lightweight middleware for enabling Back and Forward browser controls for a Single/Multi-page Web Application.
This middleware will record action objects in the browser history stack, replaying the action when user navigates back or forward with browser navigation.
If you already have some screen management with pure redux actions, then this will give you browser history with 0 new actions and no configuration beyond calling the createBackMiddleware
function.
I used this for subscreen changes that didn't warrant a change in url but wanted the intuitive back action to be available.
$ npm install --save redux-back
import {applyMiddleware} from 'redux'
import {createBackMiddleware} from 'redux-back'
const landingPage = {type: EXAMPLE_OPEN_LANDING_PAGE_Action, welcomeMessage: 'Welcome'}
const reduxBack = createBackMiddleware(landingPage, [EXAMPLE_Action1, EXAMPLE_Action2])
let store = createStore(reducers, loadedState, applyMiddleware(...middleware, reduxBack))
It can be used with require as
const {createBackMiddleware} = require('redux-back')
The above code will add actions of type EXAMPLE_Action1
and EXAMPLE_Action2
to the browser back and forward buttons.
The EXAMPLE_OPEN_LANDING_PAGE_Action
provided to the creation script will be used when the user clicks back to the first screen of the session. If any action objects in browser history are null, they won't be dispatched.
FAQs
A lightweight middleware for enabling Back and Forward browser controls for a Single/Multi-page Web Application
The npm package redux-back receives a total of 1 weekly downloads. As such, redux-back popularity was classified as not popular.
We found that redux-back 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.