How to use the kea/logic.connect function in kea

To help you get started, we’ve selected a few kea examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keajs / kea / assets / scaffolds / code / index.js View on Github external
// libraries
import React, { Component } from 'react'
import { connect } from 'kea/logic'

// utils

// components

// logic
import $$camelScene$$ from '~/scenes/$$dash-scene$$/logic'
import $$camelComponent$$Logic from '~/scenes/$$dash-scene$$/$$path-component$$/logic'
import $$camelComponent$$Saga from '~/scenes/$$dash-scene$$/$$path-component$$/saga'

// const { SHOW_ALL, SHOW_ACTIVE, SHOW_COMPLETED } = $$camelScene$$.constants

@connect({
  actions: [
    $$camelScene$$, [
      // 'showAll',
      // 'setVisibilityFilter'
    ],
    $$camelComponent$$Logic, [
      //
    ]
  ],
  props: [
    $$camelScene$$, [
      // 'visibilityFilter'
    ],
    $$camelComponent$$Logic, [
      //
    ]

kea

Smart front-end architecture

MIT
Latest version published 1 year ago

Package Health Score

62 / 100
Full package analysis