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

fix(table): pass down value and record types to cells #401

Merged
merged 4 commits into from
Nov 22, 2023
Merged

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Nov 21, 2023

No description provided.

@brc-dd brc-dd requested a review from kiaking November 21, 2023 09:24
@brc-dd brc-dd self-assigned this Nov 21, 2023
Copy link

netlify bot commented Nov 21, 2023

Deploy Preview for sefirot-story ready!

Name Link
🔨 Latest commit 0155e56
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-story/deploys/655c7979806d360007a66a6b
😎 Deploy Preview https://deploy-preview-401--sefirot-story.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 21, 2023

Deploy Preview for sefirot-docs ready!

Name Link
🔨 Latest commit 0155e56
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-docs/deploys/655c7979f52c7700081a1f27
😎 Deploy Preview https://deploy-preview-401--sefirot-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brc-dd brc-dd changed the title fix(table/types): pass actual value and record types to cells fix(table): pass down value and record types to cells Nov 21, 2023
Comment on lines +199 to +200
onClick(record: R): void
show?(record: R): boolean
Copy link
Member Author

@brc-dd brc-dd Nov 21, 2023

Choose a reason for hiding this comment

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

these are pretty inconsistent with others. thinking consistency vs usability 🤔 (value even if introduced will always be undefined)

Copy link
Member

Choose a reason for hiding this comment

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

Hmmmm I vote for usability here. Also, I have a feeling we could remove value from everywhere in the future version.

Since we started using Ops pattern, I see my self barely using value anymore because ops requires whole model to be passed in 🤔

{
  cell: (_, user) => ({
    value: userOps.fullName(user)
  })
}

@brc-dd brc-dd merged commit 2f3ad3c into main Nov 22, 2023
9 checks passed
@brc-dd brc-dd deleted the table/fix-any branch November 22, 2023 04:01
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