Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

TempData within a ViewComponent #4728

Closed
bfolder2001 opened this issue May 24, 2016 · 4 comments
Closed

TempData within a ViewComponent #4728

bfolder2001 opened this issue May 24, 2016 · 4 comments
Assignees

Comments

@bfolder2001
Copy link

It seems that ViewData and ViewBag are available from within ViewComponent.Invoke(), but that TempData isn't. Is this by design or an oversight?

@rynowak
Copy link
Member

rynowak commented May 24, 2016

It's available via ViewContext.TempData. We should add a convenience property... seems like just an oversight to me.

@bfolder2001
Copy link
Author

@rynowak I was sure I'd checked there, but you're quite right! Thanks. A convenience property would certainly clear things up.

@Eilon Eilon added this to the 1.0.1 milestone May 24, 2016
@Eilon Eilon added bug 1 - Ready up-for-grabs Members of our awesome commnity can handle this issue labels May 24, 2016
dougbu pushed a commit that referenced this issue Jun 17, 2016
* TempData convenience property added to ViewComponent

 #4728

* PR feedback
@dougbu dougbu added 3 - Done and removed 1 - Ready labels Jun 17, 2016
@dougbu
Copy link
Member

dougbu commented Jun 17, 2016

94fa34c

@dougbu dougbu removed the up-for-grabs Members of our awesome commnity can handle this issue label Jun 17, 2016
@dougbu
Copy link
Member

dougbu commented Jun 17, 2016

Thanks @ctyar!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants