Shopify / quilt

[⚠️ Deprecated] A loosely related set of packages for JavaScript/TypeScript projects at Shopify
MIT License
1.7k stars 220 forks source link

Compose Hooks #2524

Open KrisLau opened 1 year ago

KrisLau commented 1 year ago

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

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

Scope


Checklist

KrisLau commented 1 year ago

@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