stripe / stripe-apps

Stripe Apps lets you embed custom user experiences directly in the Stripe Dashboard and orchestrate the Stripe API.
https://stripe.com/docs/stripe-apps
MIT License
148 stars 73 forks source link

A common HOC that applies to all View components #704

Open bdcorps opened 2 years ago

bdcorps commented 2 years ago

Is your feature request related to a problem? Please describe. I am using a few NPM packages like React-Query and Flagsmith that require your component to be wrapped up in a HOC. Say if you have 10 views, all of them have to be individually wrapped.

Describe the solution you'd like Next.js has the notion of an _app.tsx or _document.tsx that are applied as HOC for every page. Any functionality common between pages goes there.

Describe alternatives you've considered

Screen Shot 2022-07-30 at 4 27 07 PM
lfisher-stripe commented 2 years ago

Thanks for sharing, we'll follow up with some potential workarounds while we consider what to do in the future.