-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future-proof prepare argument #471
Conversation
We'd want to make sure it was clear somewhere that this is not the |
I'm not sure where the best place to mention that would be. Presumably it would be at least as relevant to mention elsewhere |
Before adding this, can we figure out what the concrete use cases are? The main purpose of Perhaps in the meantime we could change the signature from (headers) => ({ headers, context }) to ({ headers }) => ({ headers, context }) so that it's future-proof and we can make this change one day in a non-breaking way? |
I think this came out of a discussion in Discord that came out of Ben's call with the Apple guy. Part of the Discord conversation happened in voice chat, so I can't review all of it. I can't tell whether there's currently a concrete use case other than "Apple, for the unusual way that they pass data to pages that need it". I'd definitely be in favor of making this an object instead, so that we can potentially expand it later. And we should probably also sweep for the API for other similar places where we are potentially hurting our ability to expand functionality in a backward-compatible way. |
The Apple use case was partially the motivation. I'm not necessarily sure this is the best way to solve their problem, but it might open a path for them even if suboptimal. My larger concern was probably about backwards compatibility as y'all mentioned here. I agree it's better to pass |
nice, i like this — mind running |
It seems quite possible to me that you might want to use the
host
,method
,path
,query
, etc.