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

"host object" error is confusing #265

Open
Kampfkarren opened this issue Apr 4, 2020 · 2 comments
Open

"host object" error is confusing #265

Kampfkarren opened this issue Apr 4, 2020 · 2 comments

Comments

@Kampfkarren
Copy link
Contributor

Kampfkarren commented Apr 4, 2020

I received an error when using a portal: "Expected target to be host object". I had to look through the source code to figure out host object just means instance (in the Roblox renderer, anyway). The error should probably be changed, as I do not believe this term is used anywhere except internally.

@LPGhatguy
Copy link
Contributor

We've tried to expand usage of this term in the Roact documentation:

I don't think we communicate the meaning of this term particularly well. Though "instances" is the term that Roblox generally uses, it's very vague and collides with many other terms. We also chose 'host object' to match React, which has the additional constraint of running on multiple DOMs.

I'm not sure what the best path forward is.

@Kampfkarren
Copy link
Contributor Author

Instance would the correct term I feel, but it does collide with other terms. Perhaps it can say something like "Expected target to be an instance, such as a Frame"?

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

No branches or pull requests

2 participants