Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

preload without return {} causes error #587

Closed
imbolc opened this issue Mar 2, 2019 · 3 comments
Closed

preload without return {} causes error #587

imbolc opened this issue Mar 2, 2019 · 3 comments
Labels

Comments

@imbolc
Copy link

imbolc commented Mar 2, 2019

I'm using preload to only fill session without any return object and after the last changes it starts to cause an error: TypeError: Cannot convert undefined or null to object

@njbotkin
Copy link

Got this too. Thanks for figuring out return {}. I only ran into this on a component that was 2 levels deep, if that means anything for the debugger.

@artemjackson
Copy link
Contributor

@imbolc which side did you catch the error? From server or client?

@Rich-Harris
Copy link
Member

Fixed in 0.26 — closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants