rsnext/packages
Shu Ding 000d022b4e
Support .bind syntax with Action functions (#49422)
This PR implements initial support for `.bind` syntax for inline actions
(not top-level `"use server"` files yet). For example:

```js
export default function Page({ foo, x, y }) {
  async function action(a, b, c, d) {
    'use server'
    console.log(a, b, c, d)
  }

  return <ClientComp action={action.bind(null, foo[0], foo[1], foo.x, foo[y])} />
}
```

Is now valid.

Fixes NEXT-1109.
2023-05-09 19:05:20 +02:00
..
create-next-app v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
eslint-config-next v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
eslint-plugin-next v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
font v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next Support .bind syntax with Action functions (#49422) 2023-05-09 19:05:20 +02:00
next-bundle-analyzer v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-codemod v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-env v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-mdx v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-plugin-storybook v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-polyfill-module v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-polyfill-nomodule v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
next-swc Support .bind syntax with Action functions (#49422) 2023-05-09 19:05:20 +02:00
react-dev-overlay v13.4.2-canary.3 2023-05-09 01:27:04 +00:00
react-refresh-utils v13.4.2-canary.3 2023-05-09 01:27:04 +00:00