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

document how to use sub-parts of Photon.js queries #1166

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

nikolasburk
Copy link
Member

No description provided.

@nikolasburk nikolasburk merged commit a77c47c into master Dec 17, 2019
@nikolasburk nikolasburk deleted the docs/reusing-photon-queries branch December 17, 2019 10:12
@nikolasburk nikolasburk mentioned this pull request Dec 17, 2019
@dodas
Copy link

dodas commented Dec 17, 2019

Code example in Reusing query sub-parts is incorrectly formatted.


You can reuse subparts of a Photon.js query by not immediately evaluating the promise that's returned by any Photon.js API call. Depending on your evaluating the promise, you can do this either by leaving out the prepended `await` keyword or the appended call to `.then()`.

```ts
Copy link
Member

Choose a reason for hiding this comment

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

one tab too much

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.

None yet

3 participants