Socket
Book a DemoInstallSign in
Socket

ionic-rocketjump

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic-rocketjump

Rocketjump integration for Ionic

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

ionic-rocketjump

Ionic :gem: + Rocketjump :rocket: = :heart:

useIonRunRj

// Choose between react or redux rj
import { rj, deps } from 'react-rocketjump'
// or
import { rj, deps } from 'redux-rocketjump'

import { useIonRunRj } from 'ionic-rocketjump'

const RjObject = rj({
  effect,
})
// ...
const [state, actions] = useIonRunRj(RjObject, [
  deps.maybe(23),
  // other deps...
], {
  // Should trigger clean on new effect? Default: true
  cleanOnNewEffect: true,
  // Should trigger run on ionViewDidEnter Default: true
  runOnEnter: true,
  // Should trigger clean on ionViewDidLeave Default: false
  cleanOnLeave: false,
})

React version only:

import { useIonRunRj } from 'ionic-rocketjump/react'

Redux version only:

import { useIonRunRj } from 'ionic-rocketjump/redux'

Keywords

redux

FAQs

Package last updated on 27 Mar 2020

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