mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 01:07:27 +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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/check-pr-status
|
||||
security-lockfile-analysis:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -11,9 +11,8 @@ type InitializerProps = {
|
||||
setPlugin: (id: string) => void;
|
||||
};
|
||||
|
||||
const Initializer: React.FC<InitializerProps> = ({ setPlugin }) => {
|
||||
const ref = useRef<(id: string) => void | null>(null);
|
||||
ref.current = setPlugin;
|
||||
const Initializer = ({ setPlugin }: InitializerProps) => {
|
||||
const ref = useRef(setPlugin);
|
||||
|
||||
useEffect(() => {
|
||||
ref.current(pluginId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user