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

Return sheetObject without reconfiguring #480

Closed
akre54 opened this issue Mar 25, 2024 · 2 comments
Closed

Return sheetObject without reconfiguring #480

akre54 opened this issue Mar 25, 2024 · 2 comments

Comments

@akre54
Copy link
Contributor

akre54 commented Mar 25, 2024

It would be nice if sheet.object(key) would return the existingObject if you didn't pass in a config. Right now we need to keep track of the objects in userland, which involves a bit of bookkeeping and state passing.

My use case is I'm trying to set the studio selection, and you need the sheetObject to do this. Most places I already have access to the Sheet through a Provider, and I use string keys for everything else. Is this doable? Thanks!

@vimlesh1975
Copy link

Or something like
sheet.getObject(key)

@AriaMinaei
Copy link
Member

@akre54 yolo'd this one. Upgrade to 0.7.1 and use sheet.__experimental_getExistingObject('key').

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

No branches or pull requests

3 participants