Skip to content

Commit

Permalink
Merge pull request #20 from diplodoc-platform/fix-types
Browse files Browse the repository at this point in the history
fix(runtime, react): added IHTMLIFrameElementConfig export
  • Loading branch information
makhnatkin authored Jul 15, 2024
2 parents 6887a23 + 5d1b913 commit e06de78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/react/useDiplodocHtml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {useMemo} from 'react';
import {IHtmlController} from '../types';

import {getScriptStore, useController} from '../common';
Expand All @@ -8,5 +7,5 @@ export function useDiplodocHtml(): IHtmlController | null {
const store = getScriptStore<IHtmlController>(GLOBAL_SYMBOL);
const controller = useController<IHtmlController>(store);

return useMemo(() => controller ?? null, [controller]);
return controller;
}
3 changes: 2 additions & 1 deletion src/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export type {
ControllerCallback,
ForEachCallbackArgs,
IHtmlController,
IHtmlIFrameController,
IHtmlControllerConfig,
IHtmlIFrameController,
IHTMLIFrameElementConfig,
SetConfigArgs,
} from '../types';

0 comments on commit e06de78

Please sign in to comment.