-
Notifications
You must be signed in to change notification settings - Fork 7
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
API integration #3
Conversation
b15a985
to
3008bae
Compare
}; | ||
|
||
const getAllIndexes = useCallback(async () => { | ||
if (!viewedProfile || !viewedProfile.id) return; // TODO: handle better maybe? |
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.
I need to clarify the flow of the 'viewedProfile' variable and the reason it is managed as a session object rather than a route parameter in a seperate session. Due to this approach, it's possible that this variable might not be present. Also, I agree that it could be handled much better.
web-app/src/services/api-service.ts
Outdated
private signerPublicKey: string = ''; | ||
private signerFunction: string = appConfig.defaultCID; |
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.
Since the API is not all about indexes, these properties ideally should belong to index type, we should talk a little bit about the client structure.
uses
dev.index.network
inapiConfig
, need to change that in prod