![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
browser-redux-bg
Advanced tools
Messaging library for Cross-browser extensions and Chrome apps. Calls actions from the background script.
Sends redux actions (from popup, windows or inject pages) to be called in the background by their function name. Use with redux-persist and browser-redux-sync.
import { createStore, compose, combineReducers } from 'redux'
import { persistStore, autoRehydrate } from 'redux-persist'
import { configureSync, sync } from 'browser-redux-sync'
import { configureBg, bgReducers } from 'browser-redux-bg';
import reducers from '../reducers';
import actions from '../actions';
const isFromBackground = false; // should be true for the background script
const finalCreateStore = compose(autoRehydrate())(createStore)
const extension = bgReducer(isFromBackground)
const rootReducer = combineReducers({ ...reducers, extension })
const store = finalCreateStore(rootReducer)
const persistor = persistStore(store, configureSync(configureBg(store, actions, isFromBackground)))
sync(persistor)
In the container:
import { connect } from 'react-redux';
import someComponent from '../components/someComponent';
import * as someActions from '../actions/someActions';
import { bgActions } from 'browser-redux-bg';
function mapStateToProps(state) {
return {
state: state
};
}
const mapDispatchToProps = { ...someActions, ...bgActions};
export default connect(mapStateToProps, mapDispatchToProps)(someComponent);
In the component:
import React, { Component } from 'react';
class someComponent extends Component {
render() {
const { ...someActions, bg } = this.props;
return (
<p>
<button onClick={() => bg('actionFunctionName')}>Call an actionFunctionName in the background script</button>
</p>
);
}
}
export default someComponent;
See browser-redux for a boilerplate and more details.
FAQs
Messaging library for Cross-browser extensions and Chrome apps. Calls actions from the background script.
The npm package browser-redux-bg receives a total of 0 weekly downloads. As such, browser-redux-bg popularity was classified as not popular.
We found that browser-redux-bg 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.