Skip to content

Add 'firstRender' parameter to OnAfterRender #13029

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

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Aug 10, 2019

Fixes: #11610

I took the approach here of building this into ComponentBase instead
of IHandleAfterRender - because my reasoning is that firstTime is
an opinionated construct. There's nothing fundamental about firstTime
that requires tracking by the rendering, it's simply an opinion that
it's going to be useful for component authors, and reinforces a common
technique.

@rynowak rynowak force-pushed the rynowak/on-after-render branch from 73c42cb to f0a4acf Compare August 10, 2019 21:32
@rynowak rynowak changed the base branch from master to release/3.0 August 10, 2019 21:32
@rynowak rynowak force-pushed the rynowak/on-after-render branch 2 times, most recently from f022583 to 9b71ecc Compare August 12, 2019 14:42
Fixes: #11610

I took the approach here of building this into `ComponentBase` instead
of `IHandleAfterRender` - *because* my reasoning is that `firstTime` is
an opinionated construct. There's nothing fundamental about `firstTime`
that requires tracking by the rendering, it's simply an opinion that
it's going to be useful for component authors, and reinforces a common
technique.

Feedback on this is welcome.
@rynowak rynowak force-pushed the rynowak/on-after-render branch from 9b71ecc to 2b3ceb1 Compare August 12, 2019 16:16
@rynowak
Copy link
Member Author

rynowak commented Aug 12, 2019

@SteveSandersonMS - updated

@Eilon Eilon added the area-blazor Includes: Blazor, Razor Components label Aug 12, 2019
@rynowak rynowak added API Review tell-mode Indicates a PR which is being merged during tell-mode labels Aug 12, 2019
@pranavkm pranavkm changed the title Add 'firstTime' parameter to OnAfterRender Add 'firstRender' parameter to OnAfterRender Aug 12, 2019
@rynowak rynowak merged commit 1f4341a into release/3.0 Aug 13, 2019
@ghost ghost deleted the rynowak/on-after-render branch August 13, 2019 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants