alleyinteractive / alley-scripts

A collection of scripts and utilities for Alley projects.
https://alley-scripts.alley.dev/
6 stars 1 forks source link

Issue-629: PostPicker Allow developer to specify post lookup function #630

Closed mogmarsh closed 5 months ago

mogmarsh commented 5 months ago

Fixes Issue Number: #629

Issue URL: https://github.com/alleyinteractive/alley-scripts/issues/629

Description

This update allows for a custom function to be provided for looking up post data to be used in the preview component, enhancing flexibility in cases where usePostById is not suitable for accessing post information.

Use Case

The enhancement caters to scenarios where a post cannot be accessed by usePostById, enabling developers to specify an alternative function for accessing the needed post data.

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 621037b5119a8215d759f7a15472fb0c857ffabb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------------------ | ----- | | @alleyinteractive/block-editor-tools | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR