Skip to content

Implement get-params for rsc#65922

Closed
alexdln wants to merge 1 commit into
vercel:canaryfrom
alexdln:get-params
Closed

Implement get-params for rsc#65922
alexdln wants to merge 1 commit into
vercel:canaryfrom
alexdln:get-params

Conversation

@alexdln

@alexdln alexdln commented May 18, 2024

Copy link
Copy Markdown
Contributor

What?

Just wanna leave a PR here that the technical basis for obtaining params in server components already exist.

Very basic implementation, without tests and errors. If you know about problems and risks that I don't know - please tell me, perhaps I will be able to deal with their elaboration and find a solution that suits you. After I will write all the tests and necessary logic.

Fixes #58862

@ijjk

ijjk commented May 18, 2024

Copy link
Copy Markdown
Member

Allow CI Workflow Run

  • approve CI run for commit: 4cf2dbb

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk

ijjk commented May 18, 2024

Copy link
Copy Markdown
Member

Allow CI Workflow Run

  • approve CI run for commit: 4cf2dbb

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@joulev

joulev commented May 26, 2024

Copy link
Copy Markdown
Contributor

It appears you have to disable the router cache completely for this to work, and it only works in prod mode:

/**
 * @type {import('next').NextConfig}
 */
module.exports = {
  experimental: {
    staleTimes: { static: 0, dynamic: 0 },
  },
};

But the fact that this even works is amazing. I don't know the internals but, purely from the concept of partial rendering, this shouldn't even be possible, yet it actually works.

@alexdln alexdln closed this Mar 18, 2026
@github-actions github-actions Bot added the locked label Apr 2, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants