Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mst-tools

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mst-tools

Toolset for efficient development with MobX-State-Tree

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Package logo

Build Status npm Standard Shared Config

Toolset for efficient development with MobX-State-Tree

Install

npm install mobx mobx-state-tree mst-tools

Usage

For a detailed description of all helper functions and wrappers see API

import { types, effect } from "mst-tools"

const model = types.model('ModelName', {
    ...,
    isLoaded: types.flag,
    isLoading: types.flag,
  })
  .effects((self, { isLoading, isLoaded }) => ({
    load: effect(
      function* () {
        self.field = yield self.api.load();
      },
      { isLoading, isLoaded }
    ),
  }));

const store = model.create({});

await store.load();

Benchmark

The toolkit adds additional code to implement new features. Welcome - if you are willing to pay for the speed of development time to create a model.

npm run benchmark

---

Test perf (model creation):
[mobx-state-tree] x 7,843 ops/sec ±0.28% (92 runs sampled)
[mst-tools] x 7,141 ops/sec ±0.31% (93 runs sampled)
# Fastest is [mobx-state-tree]

---

OS: Ubuntu 21.10 x86_64
DE: GNOME 40.5
Terminal: tilix
CPU: Intel i9-9900 (16) @ 5.000GHz
GPU: NVIDIA GeForce RTX 2070
Memory: 32019MiB

API

Click the tools names for complete docs.

...in process

Keywords

FAQs

Package last updated on 18 Apr 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc