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

Move Cache instantiation to Session #1024

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

seanpdoyle
Copy link
Contributor

When the Cache class was introduced in a54ac17, it depended on a Session instance. When it was modified in f86a376, that dependency was no longer necessary.

This commit preserves the export of the Turbo.cache property while re-arranging the location it's declared. Instead of instantiating the Cache instance in @hotwired/turbo/core/, this commit defines it as a property on the Session instance.

When the `Cache` class was [introduced in a54ac17][], it depended on a
`Session` instance. When it was [modified in f86a376][], that dependency
was no longer necessary.

This commit preserves the export of the `Turbo.cache` property while
re-arranging the location it's declared. Instead of instantiating the
`Cache` instance in `@hotwired/turbo/core/`, this commit defines it as a
property on the `Session` instance.

[introduced in a54ac17]: hotwired@a54ac17
[modified in f86a376]: hotwired@f86a376
seanpdoyle added a commit to seanpdoyle/turbo that referenced this pull request Oct 8, 2023
@afcapel afcapel merged commit 485115d into hotwired:main Oct 23, 2023
1 check passed
@afcapel
Copy link
Collaborator

afcapel commented Oct 23, 2023

Good catch 👍

@seanpdoyle seanpdoyle deleted the session-cache branch October 23, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants