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

AsyncLocaleStorage impelementation for global http context #36

Merged
merged 4 commits into from
Apr 10, 2023
Merged

Conversation

axmad386
Copy link
Member

@axmad386 axmad386 commented Apr 10, 2023

Whats changed:

  • Access to AsyncLocalStorage instance using Als facade
  • Introduce new request() helper for access Http Request instance from anywhere
  • Support binding Symbol to container, instead of just regular string. Symbol will make the binding key more unique. example
    const token = Symbol("somekey");
    this.app.bind(token, ()=>new Service());
    
    // then anywhere inside application
    this.app.make(token) // --> will return Service instance
  • client helpers from @lunoxjs/view now support SSR mode. Thanks to global request() helper.

@axmad386 axmad386 merged commit 6f09133 into next Apr 10, 2023
@axmad386 axmad386 deleted the als branch April 10, 2023 13:04
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.

None yet

1 participant