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

docs: Update useStatefulResource() in guides #183

Merged
merged 1 commit into from
Nov 22, 2019
Merged

docs: Update useStatefulResource() in guides #183

merged 1 commit into from
Nov 22, 2019

Conversation

ntucker
Copy link
Collaborator

@ntucker ntucker commented Nov 21, 2019

Fixes #181

Motivation

Types were a bit out of date from 3.0 transition. Confirmed this working in both code and types in anansi example project.

Solution

Update docs in current and 3.0 release. Also remove generics (unnecessary) from hasUsableData()

fetchShape: ReadShape<S, Params>,
export default function hasUsableData(
cacheReady: boolean,
fetchShape: Pick<FetchShape<any>, 'options'>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since this is the only piece taken none of the generics actually have any impact

@ntucker ntucker merged commit 0e59914 into master Nov 22, 2019
@ntucker ntucker deleted the no-suspense branch November 22, 2019 00:12
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.

Type 'DenormalizeNullable<S>' is not assignable to type 'SchemaOfCore<S>'.ts(2345)
2 participants