Add hook for swtich between realtime data or cached data.