{"size": 546, "ext": "js", "max_stars_repo_path": "version/16.8/three/react-reconciler/src/ReactFiberHostContext.js", "max_stars_repo_name": "baochuang/MReact", "max_stars_repo_stars_event_min_datetime": "2019-02-20T04:27:49.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-20T04:27:49.000Z", "max_issues_repo_path": "version/16.8/three/react-reconciler/src/ReactFiberHostContext.js", "max_issues_repo_name": "baochuang/MReact", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "version/16.8/three/react-reconciler/src/ReactFiberHostContext.js", "max_forks_repo_name": "baochuang/MReact", "max_forks_repo_forks_event_min_datetime": "2019-01-14T02:19:17.000Z", "max_forks_repo_forks_event_max_datetime": "2019-01-14T03:40:06.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 19.5, "max_line_length": 56, "alphanum_fraction": 0.7600732601}
import { 
    createCursor,
    push
} from './ReactFiberStack'

const NO_CONTEXT = {}

let rootInstanceStackCursor = createCursor(NO_CONTEXT)

function getHostContext() {
    const context = contextStackCursor.current
    return context
}

function getRootHostContainer() {
    const rootInstance = rootInstanceStackCursor.current
    return rootInstance
}

function pushHostContainer(fiber, nextRootInstance) {
    push(rootInstanceStackCursor, nextRootInstance)
}

export {
    getHostContext,
    getRootHostContainer,
    pushHostContainer
}