Skip to content
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

Render a specific component on target location #648

Closed
aralroca opened this issue Nov 26, 2024 · 1 comment · Fixed by #682
Closed

Render a specific component on target location #648

aralroca opened this issue Nov 26, 2024 · 1 comment · Fixed by #682
Assignees
Labels
enhancement New feature or request

Comments

@aralroca
Copy link
Collaborator

aralroca commented Nov 26, 2024

Create 2 new Server APIs that is going to replace rerenderInAction. The idea is to use them in server actions:

renderPage()   // Full page re-render
renderComponent() // Re-render current component

// Render a specific component on target location
renderComponent({
  element: <Component {...props} />,
  target: "#target-id",
  mode: "replace",
  withTransition: true,
});

Discused here.

@aralroca aralroca added the enhancement New feature or request label Nov 26, 2024
@aralroca aralroca self-assigned this Nov 26, 2024
@aralroca aralroca mentioned this issue Nov 26, 2024
25 tasks
@aralroca
Copy link
Collaborator Author

aralroca commented Dec 8, 2024

This issue can facilitate to fix these current problems: #513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant