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

Remove axios #1369

Merged
merged 5 commits into from
Nov 5, 2024
Merged

Remove axios #1369

merged 5 commits into from
Nov 5, 2024

Conversation

yanfali
Copy link
Collaborator

@yanfali yanfali commented Nov 1, 2024

Description

Remove Axios dependency and replace with standard baseline fetch.

 - use await to flatten code
 - must await dispatch otherwise there's a race for the background
   updating correctly
@yanfali yanfali marked this pull request as ready for review November 1, 2024 22:18
@@ -109,8 +112,7 @@ export default {
'resizeConfig',
'setLoadingKeymapPromise'
]),
...mapMutations('status', ['append']),
...mapActions('status', ['scrollToEnd']),
...pinia.mapActions(useStatusStore, ['append', 'scrollToEnd']),
Copy link
Collaborator Author

@yanfali yanfali Nov 1, 2024

Choose a reason for hiding this comment

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

I missed these actions in the last PR. So this fixes that.

@@ -402,6 +402,9 @@ const mutations = {
},
initKeymap(state, { layout, layer, code = 'KC_NO' }) {
const { name } = this.getters['keycodes/lookupKeycode'](code);
if (!layout) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prevents a crash on initial load because layout is undefined

@yanfali yanfali merged commit 6c25d2b into master Nov 5, 2024
2 checks passed
@yanfali yanfali deleted the remove-axios branch November 5, 2024 17:52
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.

1 participant