Giter Club home page Giter Club logo

Comments (4)

kirillzyusko avatar kirillzyusko commented on August 30, 2024

Hi, @NoamDev
Well, it's good question :)
If you look at implementation of this method (https://github.com/kirillzyusko/react-native-wifi-p2p/blob/master/android/src/main/java/io/wifi/p2p/WiFiP2PManagerModule.java#L61) you can see this function has side effect (saving new info into local wifiP2pInfo variable).
And this method is only used in sendMessage/sendFile flow. And in future I would like to simplify these flows and get rid off the usage of this method.
That's why I marked this method as temporary - I don't know whether we need to have this method in future after simplifying flow or not :)
Nonetheless if I make breaking change I will publish new version as 2.x.x and prepare some migration documents.
So now you can use this method.
Did I answer on your question? :)

from react-native-wifi-p2p.

NoamDev avatar NoamDev commented on August 30, 2024

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on August 30, 2024

@NoamDev
The lifecycle method is not an evil πŸ˜…
I was just curios why did I need to use this method in the sending messages/files flow. Why did I need to update a variable? As far as I remember I didn't see anything in official docs - that's why I marked this method as temporary.
I think I should remove this label :)

from react-native-wifi-p2p.

NoamDev avatar NoamDev commented on August 30, 2024

from react-native-wifi-p2p.

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.