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

Sessions #507

Merged
merged 9 commits into from
Sep 1, 2022
Merged

Sessions #507

merged 9 commits into from
Sep 1, 2022

Conversation

AlecAivazis
Copy link
Collaborator

@AlecAivazis AlecAivazis commented Sep 1, 2022

This PR is just to bring @fehnomenal's changes into a branch local to houdini

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2022

⚠️ No Changeset found

Latest commit: aac42b2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Sep 1, 2022

@AlecAivazis is attempting to deploy a commit to the HoudiniGraphQL Team on Vercel.

A member of the Team first needs to authorize it.

@AlecAivazis AlecAivazis changed the base branch from main to session September 1, 2022 09:11
@AlecAivazis AlecAivazis merged commit 2c13133 into HoudiniGraphql:session Sep 1, 2022
@AlecAivazis AlecAivazis deleted the sessions branch September 1, 2022 09:12
AlecAivazis added a commit that referenced this pull request Sep 4, 2022
* Merge fehnomenal's work (#507)

* Allow passing session data to the fetch function

* Prefer the client side session

* Receive the server session only in the browser

* Separate client and server sessions more clearly

* make test more resilient

* fake root layout file

* fake +layout.server.js

* kit transform threads session from +layout.server.js to client

* remove client.init

Co-authored-by: Andreas Fehn <[email protected]>

* rename setServerSession to setSession

* receiving server session data needs to be reactive

* document no more init

* update authentication guide

* auth guide tweaks

* use App.Session for SessionData

* remove document proxy

* added integration test for session

* make checker happy

* add changeset

* remove unused import

* fix inconsistent absolutely path in CI

* tweak util names

* find_exported_fn considers export const

* better support for load functions with implicit returns

* track hydrated state in root layout

* pass session to client side operations (mutations, loadNextPage, etc)

* updated snapshots

* add log if no session in locals

* block on error

* document onError blocking

* update snapshot

* fix duplicate test name

Co-authored-by: Andreas Fehn <[email protected]>
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.

2 participants