Skip to content

inmagik/ionic-rocketjump

Repository files navigation

ionic-rocketjump

Ionic 💎 + Rocketjump 🚀 = ❤️

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'

About

Ionic 💎 + Rocketjump 🚀 = ❤️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published