impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
17 stars 4 forks source link

Refactor core-triggered redirects #238

Open daniel-mader opened 1 month ago

daniel-mader commented 1 month ago

Description

We should get rid of CurrentUserPrompt::Redirect as part of the application state and emit events to the frontend instead that contain the redirect target as a payload. This decouples the data/state of the application from the current view/route.

Motivation

See above

Requirements

n/a

Open Questions

Can we still have "predictable" redirects if they're not tracked by the state anymore or will it become a mess?

Are you planning to contribute this in a PR?

Yes