Skip to content

Commit

Permalink
fix: fix stories orchestrator
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier committed Dec 5, 2024
1 parent 2b22ca5 commit 2122bcd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/stories/utils/orchestrator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ModalControls,
useLunatic,
} from '../..';
import React, { memo, useCallback, useEffect, useState } from 'react';
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';

import { Logger } from '../../utils/logger';
import { Overview } from './overview';
Expand Down Expand Up @@ -124,7 +124,12 @@ function OrchestratorForStories({
...rest
}) {
const { maxPage } = source;
const componentsOptions = { detailAlwaysDisplayed };

const componentsOptions = useMemo(
() => ({ detailAlwaysDisplayed }),
[detailAlwaysDisplayed]
);

const {
getComponents,
goPreviousPage,
Expand Down

0 comments on commit 2122bcd

Please sign in to comment.