Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed May 31, 2024
1 parent b09671f commit 3e4e3a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/courseware/component/XBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const XBlockRenderingContext: React.FC<{children: React.ReactNode}> = ({c
globalStatus._loadedBlockTypes.add(blockType);
// We want the browser to handle this import(), not webpack, so the comment on the next line is essential.
import(/* webpackIgnore: true */ `${getConfig().LMS_BASE_URL}/xblock/resource-v2/${blockType}/public/learner-view-v2.js`).then(() => {
console.log(`Loaded JavaScript for ${blockType} v2 XBlock.`);
console.log(`Loaded JavaScript for ${blockType} v2 XBlock.`);
}, (err) => {
console.error(`🛑 Unable to Load JavaScript for ${blockType} v2 XBlock: ${err}`);
globalStatus._loadedBlockTypes.delete(blockType);
Expand Down
1 change: 1 addition & 0 deletions src/courseware/course/sequence/Unit/data/apiHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export const useUnitContents = (unitId: string) => (
useQuery({
queryKey: queryKeys.unitContents(unitId),
queryFn: () => api.getUnitContentsData(unitId),
refetchOnWindowFocus: false,
})
);

0 comments on commit 3e4e3a3

Please sign in to comment.