Chris, the 0.5x engineer
Chris, the 0.5x engineer
Explore posts from servers
TTyperactive.xyz
Created by Chris, the 0.5x engineer on 4/9/2025 in #🛟-help
Flashing worked except for 2 keys, lily58
Hi team! Ok I have this weird situation where I did flash my keyboard changing my keybidings. I set the key #24 to be MINUS (used to be escape) and the key #11 to be TAB (used to be MINUS). I also changed a bunch of other things. Now the weird thing is that the other keys changed as espected but the keys 24 and 11 are still using their old binding. Do anybody have a suggestion please? Thanks! My custom fw can be found here https://github.com/Christopher2K/zmk-firmware/blob/main/config/lily58.keymap
4 replies
SSolidJS
Created by Chris, the 0.5x engineer on 5/8/2024 in #support
OnMount fired twice for the same component
No description
30 replies
SSolidJS
Created by Chris, the 0.5x engineer on 12/27/2023 in #support
[Middleware] Confusion around onBeforeRequest hook
Hey team! I'm playing with the latest version of Solid start and noticed something that might be me, misunderstanding the doc. I'm having a middleware onBeforeResponse that is supposed to check the response content type and if it's HTML, modify the body to add some stuff in the <head> tag (think about a CSRF token for example). To do so, I'm using the hook onBeforeRequest. This hook gives me access to an event param and a response param. The response is empty, no body, no headers, nothing. If my hook just returns the response that was given, my site breaks. Can somebody tell me what this hook is supposed to do? Am I missing something? Thanks! Some code:
export default createMiddleware({
onRequest: [
(event) => {
console.log("GLOBAL", event.request.url);
},
],
onBeforeResponse: [
(event, response) => {
return response // <- doing this BREAKS EVERYTHIIIIIING
},
],
});
export default createMiddleware({
onRequest: [
(event) => {
console.log("GLOBAL", event.request.url);
},
],
onBeforeResponse: [
(event, response) => {
return response // <- doing this BREAKS EVERYTHIIIIIING
},
],
});
1 replies