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(useSeek): Add seekAll and seekAllByName methods to useSeek composable #433

Merged
merged 2 commits into from
Nov 5, 2023

Conversation

garrlker
Copy link
Collaborator

@garrlker garrlker commented Nov 3, 2023

This implements #236

Tldr; seekAll and seekAllByName are the same as seek and seekByName except that they return an array of all matches instead of the first match.

Both methods return an empty array [] when there are no matches

Copy link

netlify bot commented Nov 3, 2023

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 23f8c7e
🔍 Latest deploy log https://app.netlify.com/sites/tresjs-docs/deploys/6546ff5913d1cf00080bec4e
😎 Deploy Preview https://deploy-preview-433--tresjs-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.

@andretchen0 andretchen0 changed the title Add seekAll and seekAllByName methods to useSeek composable feat(useSeek): Add seekAll and seekAllByName methods to useSeek composable Nov 4, 2023
@andretchen0
Copy link
Contributor

I updated the PR title, so the linter doesn't flag it.

Just FYI, here's the expected format for titles.

Copy link
Member

@alvarosabu alvarosabu left a comment

Choose a reason for hiding this comment

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

We are almost there @garrlker:

  • Please add the documentation for this composable on docs/guide/use-seek.md
  • Check the comment on the evaluation of strings

src/composables/useSeek/index.ts Outdated Show resolved Hide resolved
… useSeek documentation to include these 2 new functions
@garrlker
Copy link
Collaborator Author

garrlker commented Nov 5, 2023

@andretchen0 Thanks! I'll keep that in mind. Also I've never seen the conventional commits site before, double thanks for that!

@alvarosabu I updated the documentation with a very barebones example/description and used includes over ===

@alvarosabu alvarosabu merged commit ef905a3 into main Nov 5, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants