79571029

Date: 2025-04-12 23:15:53
Score: 1.5
Natty:
Report link

You can not.

Event handlers cannot be passed to Client Component, if you need interactivity, consider converting part of this to a Client Component.

In Nextjs, a server component can not pass a function to a client component.

Why not converting ColumnSearch to a client component? You can pass the data to your client component, and let it handle DOM logic.

If you want to keep Filter component as a server component responsible of fetching your data, it should not handle UI events..etc Let client components handle the UI.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ali