We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a757d commit 97e5fbaCopy full SHA for 97e5fba
1 file changed
src/course-outline/subsection-card/SubsectionCard.jsx
@@ -57,6 +57,11 @@ const SubsectionCard = ({
57
const [isFormOpen, openForm, closeForm] = useToggle(false);
58
const namePrefix = 'subsection';
59
const { sharedClipboardData, showPasteUnit } = useClipboard();
60
+ // WARNING: Do not use "useStudioHome" to get "librariesV2Enabled" flag below,
61
+ // as it has a useEffect that fetches course waffle flags whenever
62
+ // location.search is updated. Course search updates location.search when
63
+ // user types, which will then trigger the useEffect and reload the page.
64
+ // See https://github.com/openedx/frontend-app-authoring/pull/1938.
65
const { librariesV2Enabled } = useSelector(getStudioHomeData);
66
const [
67
isAddLibraryUnitModalOpen,
0 commit comments