
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
solidx is a state management library for solidjs.
solidjs internal state management utilities are good but not easy to work. so I created a library based on get-set-immutable. simple, fast, easy to use.
update state as you would update a js object while library does handle immutability for you.
x is a function that takes an object with state, setters, getters and actions. setters can only update state. getters and actions have to use setters to change state if they need to. use actions to make api calls or handle business logic with timers or promises.etc actions can be async or non async.
_action__ or action_stackblitz example here
import { init, x } from "solidx";
import { createStore } from "solid-js/store";
// you only need to do this once in your app. preferably in app.tsx
init(createStore);
const state = x({
count: 0,
data: [],
// setter
incr(){
this.count++;
},
// getter
_getDoubleCount(){
return this.count * 2;
}
// action
async action_loadData(){
this.setData(await fetch("https://jsonplaceholder.typicode.com/posts"));
}
});
// state.count ; => 0
// state.incr();
// state.count ; => 1
// state.getDoubleCount(); => 2
// state.action_loadData();
// state.data ; => [{title: "New Post"}, {title: "New Post 2"}]
const App = () => {
return <div>{state.count}</div>;
};
Connect with me if you have any questions related to this library.
FAQs
Easy state management with solidx for solidjs
We found that solidx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.