refactor: add #__NO_SIDE_EFFECTS__
annotations to all pure functions
#4907
+34
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before submitting the PR, please make sure you do the following
fixes #123
).Description
Resolve #4906
I will add annotations to all functions that has "No side effects 🟢" only.
For other cases, I’d like to gather feedback from the community first.
Side Effects Notes
ℹ Click to open
ref param
The param contains getter ref. This may contains side effects inside the closure.
object param
The param contains object. This may contains side effects inside the object getter.
options
)target
)target
)element
)options.eventFilter
)element
)options
)options.onScroll
)options
)requestDevice
breakpoints
)BroadcastChannel
options.source
)options.source
)useStorage
useStorage
options
)options.input
)options.dataType
)target
)navigator.getGamepads()
Image
query
)object
)options
)options
)options
)options
)options
)options
)options
)options
)--vueuse-safe-area-*
CSS varonLoaded
)shareOptions
)options.onResize
)options
)options.stringify
)options.pattern
)options
)options.eventFilter
)options
)options
)requestPermissions
immediatelyenabled
)x
,y
, ...)el
)target
)target
)options
)options.eventFilter
)options
)onEventFired
)target
)onPressed
)options
)options
)options
)options
)target
)target
)target
)onSwipe
)behavior
element
)lang
)lang
)onSwipe
)options
)enabled
)⏳ Categories Progress