input-output-hk / dapps-certification-web

Certification as a service for the Cardano dApps platform
Apache License 2.0
5 stars 0 forks source link

PLT-8807: Fix frozen browser #49

Closed EehMauro closed 10 months ago

EehMauro commented 10 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 10 months ago

Walkthrough

The updates involve enhancing the Redux state persistence by switching to IndexedDB storage and refining the wallet connection monitoring logic. A new loading component is introduced for the persist gate, and the wallet connection slice now includes a delay and additional checks to manage the subscription state more effectively.

Changes

File Path Change Summary
src/store/store.ts Switched Redux persist storage to redux-persist-indexeddb-storage.
src/index.tsx Added Loading component for PersistGate and imported Box, CircularProgress.
src/store/slices/walletConnection.slice.ts Updated startListenWalletChanges with new checks, a delay, and modified loop condition.

🐇✨ In the burrow of the code, a change was made,
A persistent leap to IndexedDB's shade.
A circular wait, as the state takes its time,
And a wallet that listens, in rhythm and rhyme.
🌟🚀


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`