Skip to content

fix: Include the type prop change in the post provider - #287

Merged
ralvarez-dg merged 1 commit into
mainfrom
fix/fix-tabbed-posts-configuration
Aug 26, 2026
Merged

fix: Include the type prop change in the post provider#287
ralvarez-dg merged 1 commit into
mainfrom
fix/fix-tabbed-posts-configuration

Conversation

@timothygachengo

Copy link
Copy Markdown
Contributor

Description

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (BREAKING CHANGE:)
  • Refactor / chore (refactor: / chore:)
  • Documentation update (docs:)

Affected package(s)

  • @devgateway/dvz-ui-react
  • @devgateway/wp-react-lib
  • example only (no changeset needed)

Checklist

  • PR title follows Conventional Commits format
  • A changeset has been added (pnpm changeset) for any change to a published package
  • pnpm build passes locally
  • pnpm --filter @devgateway/* typecheck passes
  • No hardcoded credentials, internal URLs, client names, or PII introduced
  • Any new dependency has an Apache-2.0-compatible license

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@devgateway/dvz-ui-react@a73dba2
pnpm add https://pkg.pr.new/@devgateway/wp-react-lib@a73dba2

commit: a73dba2

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates PostProvider in @devgateway/wp-react-lib so changes to the type prop trigger the expected posts refetch, and adds a changeset to publish the fix as a patch.

Changes:

  • Include type in the prop-change detection logic and in the useEffect dependency list for refetching posts.
  • Add a patch changeset for @devgateway/wp-react-lib.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/react-lib/wp-react-lib/src/providers/PostProvider.jsx Updates refetch logic to account for type changes when deciding to dispatch getPosts.
.changeset/wise-mice-smash.md Adds a patch changeset describing the fix for release automation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/react-lib/wp-react-lib/src/providers/PostProvider.jsx
@ralvarez-dg
ralvarez-dg merged commit 642a511 into main Aug 26, 2026
3 checks passed
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.

3 participants