Title: useOracleClock: return advance(ms), and fake performance (or document what it fakes) · Issue #67 · TanStack/oracles · GitHub
Open Graph Title: useOracleClock: return advance(ms), and fake performance (or document what it fakes) · Issue #67 · TanStack/oracles
X Title: useOracleClock: return advance(ms), and fake performance (or document what it fakes) · Issue #67 · TanStack/oracles
Description: Reported from an adopter's first session, at c58b0c2. Not yet reproduced here. (a) Add an advance(ms) helper. useOracleClock should return advance(ms). Then drivers never import their own vi, which also avoids the problem in the two-Vite...
Open Graph Description: Reported from an adopter's first session, at c58b0c2. Not yet reproduced here. (a) Add an advance(ms) helper. useOracleClock should return advance(ms). Then drivers never import their own vi, which...
X Description: Reported from an adopter's first session, at c58b0c2. Not yet reproduced here. (a) Add an advance(ms) helper. useOracleClock should return advance(ms). Then drivers never import their own vi, w...
Opengraph URL: https://github.com/TanStack/oracles/issues/67
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"useOracleClock: return advance(ms), and fake performance (or document what it fakes)","articleBody":"Reported from an adopter's first session, at c58b0c2. Not yet reproduced here.\n\n**(a) Add an `advance(ms)` helper.** `useOracleClock` should return `advance(ms)`. Then drivers never import their own `vi`, which also avoids the problem in the two-Vitest-copies issue.\n\n**(b) Fake `performance`.** Today `toFake` covers setTimeout, clearTimeout, setInterval, clearInterval and Date (`src/oracle-property.ts` around line 1070). In the adopter's client, a deadline timer re-checks `performance.now()`, so a virtual timeout kept re-arming until real time caught up. Their workaround: `vi.spyOn(performance, 'now').mockImplementation(() => Date.now())`. Add `performance` to `toFake`, or at least list in the JSDoc exactly what it fakes.\n\nThis is a framework change, so it needs an oracle-first change (P9) to the framework self-oracle's controlled-clock law.\n\nThis issue was written by Isaac.\n","author":{"url":"https://github.com/KyleAMathews","@type":"Person","name":"KyleAMathews"},"datePublished":"2026-11-13T21:25:19Z","url":"https://github.com/TanStack/oracles/issues/67"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:399f729b-195d-2bae-707a-51447d497c13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C682:3270C:1A3464F:23E3576:6AF9ABDF |
| html-safe-nonce | 6b584b9d043b16a926730fd01b423eb3438450a397a01048f9688926516bee53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjgyOjMyNzBDOjFBMzQ2NEY6MjNFMzU3Njo2QUY5QUJERiIsInZpc2l0b3JfaWQiOiIxNTE1NDA3MjMyODMxNDMzNjk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4b24384aeca4649b7538da37a2670edfbc311baad0d9671154f264e471483211 |
| hovercard-subject-tag | issue:6380226525 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/oracles/67/issue_layout |
| twitter:image | https://opengraph.githubassets.com/897a6a5283adc7d2ac72a6ccb6964eccc7c46a9bd54d96f35c721a6cc5a129c4/TanStack/oracles/issues/67 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/897a6a5283adc7d2ac72a6ccb6964eccc7c46a9bd54d96f35c721a6cc5a129c4/TanStack/oracles/issues/67 |
| og:image:alt | Reported from an adopter's first session, at c58b0c2. Not yet reproduced here. (a) Add an advance(ms) helper. useOracleClock should return advance(ms). Then drivers never import their own vi, which... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KyleAMathews |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/oracles git https://github.com/TanStack/oracles.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 1443546044 |
| octolytics-dimension-repository_nwo | TanStack/oracles |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1443546044 |
| octolytics-dimension-repository_network_root_nwo | TanStack/oracles |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width