repc
repc copied to clipboard
The canonical Replicache client, implemented in Rust.
Dueling Dag (or DD) is described in details in this [Google Doc](https://docs.google.com/document/d/1MZDgwZ--zG2aF1jyD8f4AgPa15MDFIiLnRy6J9XCqI8/edit#heading=h.drefh933q8rv) This task list is work in progress. It is far from complete and lacks a lot of details....
At the top level in connection.rs when we return a JS Error to JS, we now extract any possible inner JS error and add it as the `cause` property to...
https://github.com/rocicorp/repc/pull/245#pullrequestreview-519986193 We are still toddlers...
Argh
It defaults to 10s: https://github.com/rocicorp/repc/blob/ff452fd4a4a733b2bed623dad483d6d7716fc45c/src/fetch/mod.rs#L1
We are losing information when we just stringify the error message. ## Proposal Have all our errors implement a trait that has: ```rust trait IntoJsError { fn maybe_into_js_error(&self) -> Option;...
https://rocicorp.slack.com/archives/C01JJGGS6CU/p1621426062298400 ``` UnhandledRejection Non-Error promise rejection captured with value: DBReadError(MapLoadError(CorruptChunk(Corrupt(“missing key”)))) Pull returned: PullFailed(FetchFailed(RequestTimeout(TimeoutError { _private: () }))) logger: console arguments: [“Pull returned: PullFailed(FetchFailed(RequestTimeout(TimeoutError { _private: () })))“] ```
It is not clear to me that we are building the wasm files with a fixed/locked version of: - rustc - clippy - wasm-pack
In https://github.com/rocicorp/repc/issues/351 we can see a DbReadError and a PullFailed error. These are variants of OpenTransactionError and BeginTryPullError respectively. However when printed the name of the enum (OTE and BTPE)...
These can be directly invoked from JS now