feat: implemented relay controller and use that for fetching and publishing events #149

Merged
s merged 10 commits from relay-controller into staging 2024-08-20 12:13:23 +00:00
Owner
  • Implemented relay controller
  • Refactor code in relay setting page
  • Move dvm related operations from controllers to a separate dvm file in utils folder
  • removed connection status state from redux store
* Implemented relay controller * Refactor code in relay setting page * Move dvm related operations from controllers to a separate dvm file in utils folder * removed connection status state from redux store
s added 1 commit 2024-08-15 17:14:28 +00:00
s added 2 commits 2024-08-18 17:49:02 +00:00
s added 1 commit 2024-08-18 17:55:24 +00:00
s changed title from WIP: feat: implemented relay controller and use that for fetching and publishing events to feat: implemented relay controller and use that for fetching and publishing events 2024-08-19 05:54:49 +00:00
enes reviewed 2024-08-19 10:38:43 +00:00
enes left a comment
Member

On the login I can see the following error/warning in the console, but I can't replicate it each time (sent the screenshot) but I've only seen it now on relay-controller branch (also happened on logout click during the call and it prevented the logout, but unable to replicate).

Error: A state mutation was detected between dispatches, in the path 'relays.mostPopular.30'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)
    at immutableStateInvariantMiddleware.ts:200:19
    at Object.measureTime (utils.ts:11:16)
    at immutableStateInvariantMiddleware.ts:193:22
    at actionCreatorInvariantMiddleware.ts:31:12
    at Main.tsx:139:13
On the login I can see the following error/warning in the console, but I can't replicate it each time (sent the screenshot) but I've only seen it now on `relay-controller` branch (also happened on logout click during the call and it prevented the logout, but unable to replicate). ``` Error: A state mutation was detected between dispatches, in the path 'relays.mostPopular.30'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state) at immutableStateInvariantMiddleware.ts:200:19 at Object.measureTime (utils.ts:11:16) at immutableStateInvariantMiddleware.ts:193:22 at actionCreatorInvariantMiddleware.ts:31:12 at Main.tsx:139:13 ```
@ -0,0 +80,4 @@
*
* @param {Filter} filter - The filter criteria to find the event.
* @param {string[]} [relays] - An optional array of relay URLs to search for the event.
* @returns {Promise<Event | null>} - Returns a promise that resolves to the found event or null if not found.
Member

Small mismatch between comment and actual function return

Small mismatch between comment and actual function return
Author
Owner

fixed

fixed
s marked this conversation as resolved
s added 1 commit 2024-08-19 11:35:04 +00:00
s added 2 commits 2024-08-20 07:53:20 +00:00
enes approved these changes 2024-08-20 08:50:42 +00:00
s added 1 commit 2024-08-20 08:55:48 +00:00
Author
Owner

On the login I can see the following error/warning in the console, but I can't replicate it each time (sent the screenshot) but I've only seen it now on relay-controller branch (also happened on logout click during the call and it prevented the logout, but unable to replicate).

Error: A state mutation was detected between dispatches, in the path 'relays.mostPopular.30'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)
    at immutableStateInvariantMiddleware.ts:200:19
    at Object.measureTime (utils.ts:11:16)
    at immutableStateInvariantMiddleware.ts:193:22
    at actionCreatorInvariantMiddleware.ts:31:12
    at Main.tsx:139:13

I have fixed it. Can you check again please?

> On the login I can see the following error/warning in the console, but I can't replicate it each time (sent the screenshot) but I've only seen it now on `relay-controller` branch (also happened on logout click during the call and it prevented the logout, but unable to replicate). > > ``` > Error: A state mutation was detected between dispatches, in the path 'relays.mostPopular.30'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state) > at immutableStateInvariantMiddleware.ts:200:19 > at Object.measureTime (utils.ts:11:16) > at immutableStateInvariantMiddleware.ts:193:22 > at actionCreatorInvariantMiddleware.ts:31:12 > at Main.tsx:139:13 > ``` I have fixed it. Can you check again please?
s closed this pull request 2024-08-20 08:56:58 +00:00
s reopened this pull request 2024-08-20 08:57:02 +00:00
enes added 1 commit 2024-08-20 11:52:35 +00:00
s added 1 commit 2024-08-20 12:12:12 +00:00
s merged commit ba7d3fadbd into staging 2024-08-20 12:13:23 +00:00
s deleted branch relay-controller 2024-08-20 12:13:23 +00:00
Sign in to join this conversation.
No description provided.