How to use the react-redux-firebase.dataToJS function in react-redux-firebase

To help you get started, we’ve selected a few react-redux-firebase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ankaraboardgame / ankara / browser / redux / reducers / user-reducer.js View on Github external
export const getUserData = state => {
  const userId = getUserId(state);
  const gameId = getGameId(state);
  return userId && gameId && dataToJS(state.firebase, `games/${gameId}/merchants/${userId}`);
};
github ankaraboardgame / ankara / browser / redux / reducers / game-reducer.js View on Github external
export const getGameData = state => {
  const gameId = getGameId(state);
  return gameId && dataToJS(state.firebase, `games/${gameId}`);
};
github ankaraboardgame / ankara / browser / redux / reducers / room-reducer.js View on Github external
export const getRoomData = state => {
  return dataToJS(state.firebase, 'rooms');
};
github ankaraboardgame / ankara / browser / react / GameHistory / GameHistorySideBar.js View on Github external
const mapStateToProps = (state) => ({
  userId: getUserId(state),
  playerMap: getPlayerMap(state),
  historyRef: dataToJS(state.firebase, `gameLog/${state.game.id}`)
})
github nthspace / universiade / src / js / schedule / containers / ScheduleListContainer.js View on Github external
const mapStateToProps = ({ firebase }) => ({
  schedules: dataToJS(firebase, 'schedules'),
});