Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clone_multiple_into_external in Document instance methods #117

Merged

Conversation

kennethloeffler
Copy link
Contributor

Closes #109, supersedes #110.

This PR changes Document::from_data_model_instance and Document::from_instance_array to use rbx-dom's new multi-clone method, so that they correctly preserve Ref properties across services and across multi-root models.

@kennethloeffler
Copy link
Contributor Author

kennethloeffler commented Oct 4, 2023

Fixed the luau analyze failures by just typecasting to any in the necessary places because I'm honestly not sure what else to do, pls let me know if this is not ok or if you want me to do something different

@filiptibell
Copy link
Collaborator

Fixed the luau analyze failures by just typecasting to any in the necessary places because I'm honestly not sure what else to do, pls let me know

That's completely fine 👍 our instance typedefs are not great and there's no great solution for child indexing / class-specific properties here just yet either way

Copy link
Collaborator

@filiptibell filiptibell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for getting this sorted out!

@filiptibell filiptibell merged commit c43648f into lune-org:main Oct 4, 2023
5 checks passed
@kennethloeffler kennethloeffler deleted the clone-multiple-into-external branch October 4, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialized ObjectValue of a Place having Nil Values
2 participants