Skip to content

Is there a reason for this effort to exist?  #107

Closed
@ninadpchaudhari

Description

@ninadpchaudhari

Genuinely curious, why does this exist? i know its experimental & alpha, but I am trying to understand the advantages of loading Parse this way
from what I see here: https://github.com/parse-community/parse-react/blob/master/packages/parse-react/src/index.ts

The function is simply making Parse Global ( which some might argue is a bad idea). This abstracts the 3 lines of code, but breaks code completion as IDEs cannot see a Parse import statement on any other pages. Moreover, its opaque about what this actually does, Maybe we should add some more lines to docs that it simply initializes Parse & enables local storage. ( will be happy todo so ).

If we think this has to be done, at least we should return the Parse Object from here and then state in the usage section of the docs to set this Parse var as global so that the code remains testable?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions