fastify / fastify-dx

Archived
903 stars 43 forks source link

fix: usePayload on server side #11

Closed davidmeirlevy closed 2 years ago

davidmeirlevy commented 2 years ago

When you import the routes on the server, the getPayload is an actual function on the component file, so if it exists - we should run it. on the frontend, you ignored this function at the route object inside the hydration renderer and replaced it with hasPyaload.