Skip to content

Mention the transport hook in error messages and docs #13879

Open
@eltigerchino

Description

@eltigerchino

Describe the problem

We can now transport non-POJOs from the server to the client using the transport hook. However, this is not mentioned in the loading data section of the docs and the error message from trying to serialise the non-POJO

return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path})`;
}
if (error.path === '') {
return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`;
}

Describe the proposed solution

We should talk about the transport hook and add a link in the two situations described above. We'll need to update the "Data must be serializable" test to expect the new error message too.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedPRs welcomed. The implementation details are unlikely to cause debatelow hanging fruit

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions