Skip to content

Conversation

@rdhyee
Copy link
Contributor

@rdhyee rdhyee commented Dec 5, 2025

Summary

Fixes the "mutable dbState is not defined" runtime errors on the narrow_vs_wide_performance.html page.

Problem

The mutable dbState declaration was causing JavaScript runtime errors in the browser. The OJS/Quarto mutable syntax was not being processed correctly, resulting in the page failing to load any benchmarks.

Solution

  • Removed mutable state tracking entirely
  • initDatabases now returns { narrow, wide } on success or { error } on failure
  • dbNarrow/dbWide derived from initDatabases with proper null checks

This follows the simpler pattern used in parquet_cesium.qmd which works correctly.

🤖 Generated with Claude Code

The `mutable dbState` declaration was causing "mutable dbState is not
defined" errors in the browser. This was due to OJS/Quarto syntax issues
with the mutable keyword.

Simplified the approach:
- Removed mutable state tracking entirely
- initDatabases now returns { narrow, wide } on success or { error } on failure
- dbNarrow/dbWide derived from initDatabases with proper null checks

This follows the simpler pattern used in parquet_cesium.qmd.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@rdhyee rdhyee merged commit 3d0001a into isamplesorg:main Dec 5, 2025
1 check passed
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.

1 participant