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
[x] 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
Area
[x] Area: <tooling>
Scope
Is this issue related to a specific package?
[x] Tag it with the Package: <@shopify/react-compose> label.
Is it related to a new package?
[ ] Tag it with the New package Label
Checklist
[x] Please delete the labels section before submitting your issue
[x] I have described this issue in a way that is actionable (if possible)
@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
Overview
I'd love to be able to use
compose
from thereact-compose
package to compose Hooks too. Not sure if this is already possible but currently I'm having to usefromRenderProps
fromreact-recompose
to do so. I know there isreact-hooks-compose
but I feel like it would be nice if possible to be able to do it withcompose
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 thecompose
because I need the values to perform queries usingWatermelonDB
. Also, generally I feel like it would be useful to be able to send in the hook values as propsArea
Area: <tooling>
Scope
Is this issue related to a specific package?
Package: <@shopify/react-compose>
label.Is it related to a new package?
New package
LabelChecklist