Skip to content

Support for custom ID with new documents / offline support #111

@myktra

Description

@myktra

Is it possible to enhance the add(data) function returned by the useCollection hook to allow the client/caller to supply their own sufficiently unique/predictable ID for new documents, for example via the nanoid library? Currently this implementation seems to require standard Firestore library/server-generated IDs.

const add = useCallback(

Ultimately looking for offline support for new documents as noted in issue #56 and PR #55. This would be a killer feature!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions