GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mothership): simplify onNotFoundRef sync to inline assignment · simstudioai/sim@6ce9f59

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content
    • resource-content.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,7 @@ function EmbeddedLog({ logId, onNotFound }: EmbeddedLogProps) {
634634
const { data: log, isLoading, error } = useLogDetail(logId)
635635

636636
const onNotFoundRef = useRef(onNotFound)
637-
useEffect(() => {
638-
onNotFoundRef.current = onNotFound
639-
}, [onNotFound])
637+
onNotFoundRef.current = onNotFound
640638

641639
useEffect(() => {
642640
if (isApiClientError(error) && error.status === 404) {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.