deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

deep.login cause rerender with deep.linkId == 0 even if loginResult.linkId !== 0 #225

Open FreePhoenix888 opened 1 year ago

FreePhoenix888 commented 1 year ago

Describe the bug

deep.login cause rerender with deep.linkId == 0 even if loginResult.linkId !== 0

Expected Behavior

deep.linkId == loginResult.linkId after rerender

Current Behavior

deep.linkId == 0 after rerender

Steps to reproduce

  1. Clone https://github.com/deep-foundation/sdk/commit/1f2e5bb7ee7826f752de35443a70cadc3c7d9f86
  2. npm install
  3. npm run dev
  4. Pass your gql path and token and see that nothing happens after clicking "Login button"
  5. Checkout to https://github.com/deep-foundation/sdk/commit/4132140441d1e73ad6640b31fd4031f79164524f
  6. npm install
  7. npm run dev
  8. Pass your gql path adn token and see that login button is working

Environment

No response

FreePhoenix888 commented 1 year ago

The same happened to deep-memo-app. https://github.com/deep-foundation/deep-memo-app/commit/120cf4554d78bd9748d3f47240725e27390ec752 and https://github.com/deep-foundation/deep-memo-app/commit/74fbcb115ee65f2e255b5d7cef16cb736bb76983 helped to fix deep-memo-app by downgrading deeplinks to 0.0.222 version