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

feat(Deals): add resource information #132

Merged
merged 18 commits into from
Jan 8, 2025

Conversation

MixailE
Copy link
Contributor

@MixailE MixailE commented Jan 2, 2025

No description provided.

@MixailE MixailE self-assigned this Jan 2, 2025
Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
network-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 0:09am
network-explorer-stage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 0:09am
network-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 0:09am

const resourceWithDetails = useMemo(() => {
const resourceIdToDetails = new Map(
worker.peer.resources?.map((resource) => [
resource.id.replace(worker.peer.id, ''),
Copy link
Contributor

Choose a reason for hiding this comment

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

use resource.resource.id instead of this weird stuff. This resource.id should be removed completely only subraph itself needs it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

resource.resource.id consists worker.peer.id + resourceId, resources.id consists dealId + resourceId. I wanna match them by resourceId

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.

2 participants