-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adds @osdk/react #1008
Adds @osdk/react #1008
Conversation
d69f844
to
481b0e3
Compare
7a53100
to
e3eb40d
Compare
function Home() { | ||
|
||
// const client = useOsdkClient(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming you left this in case people want to use it in the template, but just double checking is this intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. This lets me generate an example usage for people while still making compilable code. Ideally I could do this by detecting an object but I think thats a much bigger project and this scratches the need.
) | ||
.replace( | ||
// Use locally generated SDK in the monorepo | ||
/"@osdk\/react": "[\^~].*?"/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like everything else unchanged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, everything else is just indentation/alignment so that introducing a new one is just new lines. PS you can tell GH to ignore whitespace changes
|
||
export function useCombinedPages<T extends ObjectOrInterfaceDefinition>( | ||
data: PageResult<Osdk.Instance<T, never, any>>[] | undefined, | ||
): Osdk.Instance<T>[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the return type not include the property keys if they sub-selected in their fetchPage
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes I think so. I also don't think I am ready to ship that function. I forget I had that in there.
No description provided.