New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rdc-app-context

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdc-app-context

App context for Realtor.com

latest
npmnpm
Version
1.17.18
Version published
Maintainers
1
Created
Source

RDC Context Provider

Shell context wrapper and component/helper library to be used across apps in realtor.com

Development

$ yarn
installs dependencies
$ yarn start
starts app

Currently, because of current CORS implementation, HOSTS file needs to be configured to use dev.realtor.com:1234 instead of localhost:1234

Install

yarn add rdc-app-shell

This module targets Node.js 6 or later and the latest version of Chrome, Firefox, and Safari.

If you you're developing using npm link, add the following alias in your webpack config, since Hooks can't have two instances of React running at the same time:

resolve: {
  alias: {
    react: resolve('./node_modules/react')
  }
}

RdcAppContext

The main Provider - Use it as a wrapper around your component to be able to access all contexts.

import React from 'react'
import { RdcAppContext } from 'rdc-app-context'

const Example = () => (
  <RdcAppContext>
    ... all components now have access to contexts
  </RdcAppContext>
)

Geo Context

Provides geo specific data such as current user location, both physical and interest.

Provides functionality in order to fetch and retrieve data from apis

Visit GeoContext - for full documentation

Feature Flag Context

Provides Feature Flag specific data: AB Tests and checking if features are enabled.

Provides functionality in order to fetch and retrieve data from apis.

Visit FeatureFlagContext - for full documentation

User Context

Provides user specific data such as, authentication information, profile, saved properties, saved searches and hidden home.

Provides functionality in order to fetch and retrieve data from apis.

Visit UserContext - for full documentation

FAQs

Package last updated on 09 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts