mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 09:14:49 +00:00
Merge branch 'main' into chore/update-design-system
This commit is contained in:
commit
a6ce58c99b
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
check-pr-status:
|
check-pr-status:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/check-pr-status
|
- uses: ./.github/actions/check-pr-status
|
||||||
security-lockfile-analysis:
|
security-lockfile-analysis:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -11,9 +11,8 @@ type InitializerProps = {
|
|||||||
setPlugin: (id: string) => void;
|
setPlugin: (id: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
const Initializer: React.FC<InitializerProps> = ({ setPlugin }) => {
|
const Initializer = ({ setPlugin }: InitializerProps) => {
|
||||||
const ref = useRef<(id: string) => void | null>(null);
|
const ref = useRef(setPlugin);
|
||||||
ref.current = setPlugin;
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ref.current(pluginId);
|
ref.current(pluginId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user