Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Compose Hooks #2524

Open
5 of 7 tasks
KrisLau opened this issue Jan 11, 2023 · 1 comment
Open
5 of 7 tasks

Compose Hooks #2524

KrisLau opened this issue Jan 11, 2023 · 1 comment
Labels
Type: Feature Request 🙌 Request a new feature or changes to an existing one

Comments

@KrisLau
Copy link

KrisLau commented Jan 11, 2023

Overview

I'd love to be able to use compose from the react-compose package to compose Hooks too. Not sure if this is already possible but currently I'm having to use fromRenderProps from react-recompose to do so. I know there is react-hooks-compose but I feel like it would be nice if possible to be able to do it with compose

Type

  • New feature
  • Changes to existing features

Motivation

Trying to move away from using context providers and instead use global state management like zustand but my main hang up is finding a way to pass the global state to the compose because I need the values to perform queries using WatermelonDB. Also, generally I feel like it would be useful to be able to send in the hook values as props
image

Area

  • Area: <tooling>

Scope

  • Is this issue related to a specific package?

    • Tag it with the Package: <@shopify/react-compose> label.
  • Is it related to a new package?

    • Tag it with the New package Label

Checklist

  • Please delete the labels section before submitting your issue
  • I have described this issue in a way that is actionable (if possible)
@KrisLau KrisLau added the Type: Feature Request 🙌 Request a new feature or changes to an existing one label Jan 11, 2023
@KrisLau
Copy link
Author

KrisLau commented Mar 20, 2023

@trishrempel @jas7457 Sorry for pinging, I think this issue might've been buried but I wasn't sure who to tag and I saw you guys were assigned to some tasks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature Request 🙌 Request a new feature or changes to an existing one
Projects
None yet
Development

No branches or pull requests

1 participant