How to use the @tarojs/redux.useSelector function in @tarojs/redux

To help you get started, we’ve selected a few @tarojs/redux 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 zhixiaoqiang / taroCloud / src / pages / userCenter / index.js View on Github external
export default function UserCenter () {
  const [state, events, loading, error] = usePage(init)
  const { avatarUrl, userInfo } = useSelector(({ userCenter, globalData }) => ({
    ...userCenter,
    ...globalData,
  }))
  const { handleList } = state

  return (

@tarojs/redux

Redux for Taro

MIT
Latest version published 4 years ago

Package Health Score

70 / 100
Full package analysis