Skip to content

repeated function call fixes#189

Merged
mj3cheun merged 8 commits intomasterfrom
dev/falcor-fixes
Jul 10, 2025
Merged

repeated function call fixes#189
mj3cheun merged 8 commits intomasterfrom
dev/falcor-fixes

Conversation

@mj3cheun
Copy link
Contributor

@mj3cheun mj3cheun commented Jul 7, 2025

No description provided.

@mj3cheun mj3cheun requested review from aucahuasi and lmeyerov July 7, 2025 19:42
@mj3cheun mj3cheun changed the title falcor fixes repeated function call fixes Jul 7, 2025

//Initial frame load and settings
const iframeRef = generateIframeRef({
const [hasInitRef, setHasInitRef] = useState(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: more legible when all state are up top together

.pipe(
tap(() => {
if (isFirst) {
setHasInitRef(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we encapsulate the fix into client-api , and leave react out of it, e.g., no g object until client-api is ready?

Copy link
Contributor

@aucahuasi aucahuasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mj3cheun mj3cheun force-pushed the dev/falcor-fixes branch from b6f10fd to aad535f Compare July 9, 2025 20:01
url,
iframeStyle, iframeClassName, iframeProps, allowFullScreen
]);
}, []);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels a bit risky, if there's a new iframe, we need to reconnect, right?

maybe we should do something like: if (any?) params undefined (vs ''), do nothing, to avoid premature loads. Right now it's just if (iframe && dataset), which may not check enough

Maybe do a few page loads to print what's going on here?

I can imagine:

  • Initial frame loads have empty params till filled out, so need to suppress
  • Later loads might some reason have empty and need suppressing? unclear

Copy link
Contributor

@lmeyerov lmeyerov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😵‍💫

@mj3cheun mj3cheun merged commit 2192e08 into master Jul 10, 2025
5 checks passed
@mj3cheun mj3cheun deleted the dev/falcor-fixes branch July 10, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants