Merge pull request #2668 from garthkerr/patch-1

Add return type for view loader.