Repository navigation
Validation docs: listeners, polls and back are covered; wildcard validateOnly() - #613
Open
wojt-janowski wants to merge 1 commit into
Open
wojt-janowski wants to merge 1 commit into
wojt-janowski wants to merge 1 commit into
Conversation
…nly() Amp-Thread-ID: https://ampcode.com/threads/T-01a1dca0-9fd9-70ee-9a18-d0b2c7791ec9 Co-authored-by: Wojt Janowski <wojt@clinically.com.au>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Docs for NativePHP/mobile-air#689 and NativePHP/mobile-air#690, both follow-ups to #614. Merge this once those land; the version labels say 4.9, so adjust them if they ship in a different release.
Validation page (
digging-deeper/validation.md)validateOnly()(mobile-air#689): the aside saidvalidateOnly('items.0.name')doesn't match anitems.*.namerule. It now says it does since 4.9, with each*standing for one segment, and keeps the 4.7/4.8 advice to usevalidate()there.#[On]/#[OnNative]listeners and->on()closures, handlers a child's event runs (through#[On]or an@eventattribute on the child's tag),#[Poll]methods andonBackPressed(). Lifecycle hooks such asmount()andonResume()are still listed as not covered. A line says what 4.7 and 4.8 covered.emit()putting a parent's messages in the child's bag is replaced by a short section. Each handler is covered by the component it belongs to, the child's handler carries on afteremit(), and a parent without the trait shows the error overlay. The old behaviour is kept in an aside for 4.7 and 4.8.emitNative(),firePoll()andpressBack()as going through the same handlers.php artisan test --filter=Documentationpasses.