Skip to content
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

clean up & fix issue with form submit returning old value #1221

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

KillariDev
Copy link
Contributor

  • Replace form logic which simple state change as form submit did not work (it seems to return old value and lag behind one selection)
  • clean up with optional signal

@jubalm
Copy link
Collaborator

jubalm commented Dec 10, 2024

Added a supplementary fix for this PR where all websites shows (falsely) being denied access to Interceptor @KillariDev
#1223


const requestBlockMode = useComputed(() => websiteAccess.value?.declarativeNetRequestBlockMode)
const requestBlockMode = useComputed(() => websiteAccess.value.declarativeNetRequestBlockMode)
const website = useComputed(() => websiteAccess.value.website)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be useOptionalComputed? There are a few other places in this PR where you introduced useComputed but maybe you meant to do useOptionalComputed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

websiteAccess is always non-undefined already in those cases so its always available (because it has been optional before where I check the undefined part). No need to have optional

@KillariDev KillariDev merged commit 59fb4ee into main Dec 10, 2024
1 check passed
@KillariDev KillariDev deleted the access-fix branch December 10, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants