-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(credentials): nested match expressions table #495
feat(credentials): nested match expressions table #495
Conversation
Just looks like the test snapshot needs updating. |
Ah, I forgot to update/add tests, thanks. |
Oh, I see this is still a draft. Carry on :-) |
I notice that after first adding a new credential from directly within the Security view, the new row gets added to the table but the count badge is missing. If I navigate away to some other view and then back to Security then the badge appears with the expected number. |
Also the badge doesn't seem to live-update with target discovery notifications while I'm on the Security view - at least not "LOST" notifications, which are all I tried. |
Sounds good, thanks for the feedback. |
…chivedRecordingsTable as well
…rgetsArchivedRecordingsTable as well
…perly update the view
I realized while writing tests that the notification handling for multiple deleted credentials in Considering I have a lot of state objects ( I then realized since the synchronous notification handling for deleted credentials is more involved than usual (relative to our other components) some of the asynchronous notifications from the
I wonder how many of our other components also have this same issue but we haven't realized since the type of notifications they handle don't typically get spammed when testing? |
Taking a look at the I wonder if my issue is due to the nature of setting up a nested table using |
I'm not sure - this is a tough thing to track down. It might be as simple as a state hook not updating, though. IIRC the elements within the dependencies array are only compared by reference, not by value, and not by any deep comparison. So for example, if you have a piece of state that is actually an array or a Map etc. and you mutate that object, the reference remains the same and the hook will not update. But your hunch that it could be timing related also seems completely possible. |
…ivedRecordingsTable
Last commit looks like it solved it :-) |
Yeah, looks like it was a timing issue. I've modified the |
Fixes #466
Includes some minor fixes to the nested table implementation in the
AllTargetsArchvedRecordingsTable
.