Title: build(deps-dev): bump @astrojs/react from 3.4.0 to 4.4.0 in /web by dependabot[bot] · Pull Request #195 · GalvinPython/feedr · GitHub
Open Graph Title: build(deps-dev): bump @astrojs/react from 3.4.0 to 4.4.0 in /web by dependabot[bot] · Pull Request #195 · GalvinPython/feedr
X Title: build(deps-dev): bump @astrojs/react from 3.4.0 to 4.4.0 in /web by dependabot[bot] · Pull Request #195 · GalvinPython/feedr
Description: Bumps @astrojs/react from 3.4.0 to 4.4.0.
Release notes
Sourced from @astrojs/react's releases.
@astrojs/react@4.4.0
Minor Changes
#14386 f75f446 Thanks @yanthomasdev! - Stabilizes the formerly experimental getActionState() and withState() functions introduced in @astrojs/react v3.4.0 used to integrate Astro Actions with React 19's useActionState() hook.
This example calls a like action that accepts a postId and returns the number of likes. Pass this action to the withState() function to apply progressive enhancement info, and apply to useActionState() to track the result:
import { actions } from 'astro:actions';
import { withState } from '@astrojs/react/actions';
import { useActionState } from 'react';
export function Like({ postId }: { postId: string }) {
const [state, action, pending] = useActionState(
withState(actions.like),
0, // initial likes
);
return (
);
}
You can also access the state stored by useActionState() from your action handler. Call getActionState() with the API context, and optionally apply a type to the result:
import { defineAction } from 'astro:actions';
import { z } from 'astro:schema';
import { getActionState } from '@astrojs/react/actions';
export const server = {
like: defineAction({
input: z.object({
postId: z.string(),
}),
handler: async ({ postId }, ctx) => {
const currentLikes = getActionState
Open Graph Description: Bumps @astrojs/react from 3.4.0 to 4.4.0. Release notes Sourced from @astrojs/react's releases. @astrojs/react@4.4.0 Minor Changes #14386 f75f446 Thanks @yanthomasdev! - Stabilizes the ...
X Description: Bumps @astrojs/react from 3.4.0 to 4.4.0. Release notes Sourced from @astrojs/react's releases. @astrojs/react@4.4.0 Minor Changes #14386 f75f446 Thanks @yanthomasdev! - Stabilizes ...
Opengraph URL: https://github.com/GalvinPython/feedr/pull/195
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6372026a-b3cf-bbc8-a8be-7925f793b969 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D694:A2B81:827354:AC0B63:698D67DC |
| html-safe-nonce | 2913a64e9a19590fc36bf429f6b45c74a22f7fd67586bfe6b5f80f659002747a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk0OkEyQjgxOjgyNzM1NDpBQzBCNjM6Njk4RDY3REMiLCJ2aXNpdG9yX2lkIjoiNzI0OTc5Njk4NTE0OTgxMDY1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ee0e402d29c786aa09d0f41c9be73db34eb3a3978f8cc919899907d0eb7a104a |
| hovercard-subject-tag | pull_request:2869034743 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/GalvinPython/feedr/pull/195/checks |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps @astrojs/react from 3.4.0 to 4.4.0. Release notes Sourced from @astrojs/react's releases. @astrojs/react@4.4.0 Minor Changes #14386 f75f446 Thanks @yanthomasdev! - Stabilizes the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/GalvinPython/feedr git https://github.com/GalvinPython/feedr.git |
| octolytics-dimension-user_id | 77013913 |
| octolytics-dimension-user_login | GalvinPython |
| octolytics-dimension-repository_id | 818428076 |
| octolytics-dimension-repository_nwo | GalvinPython/feedr |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 818428076 |
| octolytics-dimension-repository_network_root_nwo | GalvinPython/feedr |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 715890fa442134f528fb422ab338c0ad55c7a025 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width