xtablo-source/apps/main
Arthur Belleville 949888ec63
fix: resolve insertBefore DOM reconciliation error in React 19
UserStoreProvider was switching between three different return structures
(LoadingSpinner / children directly / Context.Provider wrapping children),
causing full fiber tree restructures in React 19 concurrent mode. When
batched with other state updates (e.g. UpgradeBlockContext loading),
React called insertBefore with a reference node already detached from
the DOM.

- Always render UserStoreContext.Provider so tree structure is stable;
  spinner vs children toggle happens inside it
- Use useRef to hold a stable Zustand store (update via setState instead
  of recreating on every render)
- Move inline <style> from App.tsx JSX into main.css to avoid React 19
  style-tag edge cases with conditional sibling rendering

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:07:47 +02:00
..
public Huge bump with turborepo 2025-10-23 11:54:45 +02:00
src fix: resolve insertBefore DOM reconciliation error in React 19 2026-03-30 23:07:47 +02:00
worker Lint and format 2025-10-23 21:36:21 +02:00
.biomeignore Lint and format 2025-10-23 21:36:21 +02:00
.env.production Rename env var 2026-03-16 08:44:33 +01:00
.env.staging Rename env var 2026-03-16 08:44:33 +01:00
biome.json Add language translation 2025-10-25 10:42:33 +02:00
index.html Huge bump with turborepo 2025-10-23 11:54:45 +02:00
package.json Add task management 2025-11-15 22:58:18 +01:00
stats.html Fix CircleCI docker node pull 2026-03-08 21:28:44 +01:00
tsconfig.app.json Lint and format 2025-10-23 21:36:21 +02:00
tsconfig.json Huge bump with turborepo 2025-10-23 11:54:45 +02:00
tsconfig.node.json Huge bump with turborepo 2025-10-23 11:54:45 +02:00
tsconfig.worker.json Huge bump with turborepo 2025-10-23 11:54:45 +02:00
turbo.json Try passThroughEnv 2025-12-05 09:52:17 +01:00
vite.config.d.ts Update for cirlce ci 2025-10-24 08:22:50 +02:00
vite.config.ts Fresh start after embed 2025-10-24 17:06:42 +02:00
worker-configuration.d.ts Lint and format 2025-10-23 21:36:21 +02:00
wrangler.toml Huge bump with turborepo 2025-10-23 11:54:45 +02:00