Repository navigation
Remove postId from Show and Tell revalidation calls - #1455
Conversation
|
@alok0 is attempting to deploy a commit to the Alveus Team on Vercel. A member of the Team first needs to authorize it. |
|
@pjeweb do you recall why we make a secondary API call here, rather than calling res.revalidate directly? |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
premature optimization? honestly not sure. i think it should just work directly |
|
Might be because the revalidate call is deep in the database code? |
|
Yeh that's true, though I don't see why the Edit: Actually, does using the methods from |
|
Want to try that as part of this to remove another moving piece, or just land this for now given we know its a no-op change? |
|
It looks like the only places where it would be called are from trpc. |
|
Sweet. Having looked at this logic more, I'm not really sure this'll change anything as these params were a no-op, but this at least cleans the logic up to make it a bit easier to trace what is happening. The only potential time saved here is removing: I know from experience (nodejs/node#51518 + nodejs/node#51520) that |
directly call revalidatePath in server/db/show-and-tell.ts instead of making api call to /revalidate endpoint
04e7d8e to
3b3f88d
Compare
RIP. I guess if we want to do this, we'll need to either pass through revalidate from |
|
Very much a nit, but can we always do |
|
Pushed this up to preview. @pjeweb would you mind giving this a test tomorrow? |
on it now |
| /** | ||
| * @deprecated 2025-09-15 | ||
| */ |
There was a problem hiding this comment.
Can you file an issue to track removing this? We can pull Vercel logs to check no other traffic is going to this that we've forgotten about.
#1434