Paolo of Lost Pages
Paolo of Lost Pages
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
ALS?
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
what's workerd/functions based on? V8?
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
it's runtime dependant
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
if the runtime has zero-cost stacktrace I can call HC() and recover the topmost onRequest* and get the context out of it
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
I have a turbo-stupid idea
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
@HardlyWorkin' thank you kindly :MeowHeartCloudflare:
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
every day is a school day! 😄
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
WELL
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
oh damn I reimplemented sessions from scratch
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
this changes quite a lot of unrelated things
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
is it not?
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
I had a look but it looks expensive at scale
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
Horsecollar() can get the field from context.data and wrangle stuff out. I'm not sure I want to change the boilerplate for all invocations
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
I think I'll just await Horsecollar(context).user()
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
I think I'll get by calling await Horsecollar(context).user()
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
If we had total isolation I could have a singleton and just call await Horsecollar().user()
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
const user = await context.data.horsecollar().user(); Not pretty but works
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
thank you, it's working now
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
The outcome is to add a function so I can bring up a session handler
44 replies
CDCloudflare Developers
Created by Paolo of Lost Pages on 5/7/2024 in #pages-help
context item seems not to persist from middleware to middleware and from middleware to function
let me try
44 replies