Coder Social home page Coder Social logo

Comments (3)

cesarenaldi avatar cesarenaldi commented on June 17, 2024

The issue is because your are not passing the arguments the hook expects.

Reference doc: https://lens-protocol.github.io/lens-sdk/functions/_lens_protocol_react_web.useCreateMirror.html

Working example: https://github.com/lens-protocol/lens-sdk/blob/main/examples/web-wagmi/src/publications/UseCreateMirror.tsx#L26

from lens-sdk.

jsonpreet avatar jsonpreet commented on June 17, 2024

okay thank you, it's not mentioned in docs.lens.xyz

from lens-sdk.

cesarenaldi avatar cesarenaldi commented on June 17, 2024

okay thank you, it's not mentioned in docs.lens.xyz

Ah thank you for pointing this out. I'll fix it now.

A note on the docs I hope you can find useful.

In order to keep the documents easier to maintain and keep up to date we are rethinking the docs.lens.xyz to become more of a collection of guides. See create your first post format for example.

What used the be the older format (like in the case of https://docs.lens.xyz/docs/use-create-mirror) is going to be autogenerated from TSDoc (i.e. the reference docs).

Reference docs over time will be integrated with also snippets of code you can see from the docs and from your IDE.
An example: https://lens-protocol.github.io/lens-sdk/functions/_lens_protocol_react_web.useCreatePost.html

The useCreateMirror is just not migrated to the new format yet.

from lens-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.