Skip to content

Add hasContext lifecycle function#5690

Merged
Conduitry merged 3 commits intosveltejs:masterfrom
pushkine:patch-7
Nov 23, 2020
Merged

Add hasContext lifecycle function#5690
Conduitry merged 3 commits intosveltejs:masterfrom
pushkine:patch-7

Conversation

@pushkine
Copy link
Copy Markdown
Contributor

Provides a safe way to check whether a key has been assigned in the context

Copy link
Copy Markdown
Member

@tanhauhau tanhauhau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

care to update the docs to reflect this new api?

@pushkine pushkine requested a review from tanhauhau November 18, 2020 14:50
@Conduitry Conduitry merged commit 01ead95 into sveltejs:master Nov 23, 2020
@Conduitry
Copy link
Copy Markdown
Member

hasContext has been added in 3.30.0.

taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
@pushkine pushkine deleted the patch-7 branch January 21, 2021 19:55
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.

3 participants