New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

effector-react

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effector-react - npm Package Versions

1
15

21.3.1

Diff

Changelog

Source

effector-react 21.3.1

  • Fixed TypeError in useStoreMap with scope (PR #474)
drelliot
published 21.3.0 •

Changelog

Source

effector-react 21.3.0

  • Add support for updateFilter to useStoreMap. It helps to control component rerendering, e.g. when component should rerender only when id field is changed
  • Add useStoreMap($store, value => result) shorthand
  • Add support for getKey to useList. Function in this field will be used to compute key for every item of list
  • Add support for stores with functions in them to useStore (PR #431)
  • Add domain name passed to createGate to gate.displayName and gate units (issue #449)
  • Fix unhandled promise rejection in useEvent when used effect throw an error
drelliot
published 21.2.1 •

drelliot
published 21.2.0 •

Changelog

Source

effector-react 21.2.0

  • Add createGate implementation to effector-react/ssr
import {createDomain} from 'effector'
import {createGate, useGate} from 'effector-react/ssr'

const app = createDomain()

const currentRouteGate = createGate({
  domain: app,
  defaultState: 'dashboard',
})

export const Layout = ({routeName, children}) => {
  useGate(currentRouteGate, routeName)
  return (
    <>
      <h1>{routeName}</h1>
      {children}
    </>
  )
}
drelliot
published 21.1.0 •

Changelog

Source

effector-react 21.1.0

  • Add support for object and array of events to useEvent. It's a shorthand for calling several useEvent at once (PR #425 by @sergeysova)
export function ExampleComponent() {
  const handlers = useEvent({emailChanged, passwordChanged})

  return (
    <div>
      <input onChange={handlers.emailChanged} />
      <input onChange={handlers.passwordChanged} />
    </div>
  )
}
export function ExampleComponent() {
  const [changeEmail, changePassword] = useEvent([
    emailChanged,
    passwordChanged,
  ])

  return (
    <div>
      <input onChange={changeEmail} />
      <input onChange={changePassword} />
    </div>
  )
}
drelliot
published 21.0.8 •

drelliot
published 21.0.7 •

drelliot
published 21.0.6 •

drelliot
published 21.0.5 •

drelliot
published 21.0.4 •

Changelog

Source

effector 21.0.3, effector-react 21.0.4, effector-vue 21.0.3

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