GithubHelp home page GithubHelp logo

Comments (6)

nirinchev avatar nirinchev commented on May 28, 2024 2

Models.Device already imports Realm transitively, so unless you project that into a view model, you're still ending up with a Realm dependency.

In any case, I've tried creating a simple project (I only built it in release, haven't packaged it in MSIX) and can't reproduce the behavior - can you create a repro case that we can use to further investigate.

from realm-dotnet.

nirinchev avatar nirinchev commented on May 28, 2024 2

I tried packaging a simple WPF app in MSIX and wasn't able to repro the issue you're describing. I've attached a zipped version of the project I created - I can package that, install it, and it works as expected - clicking the "Add item" button will immediately update the listview. If you can confirm whether it works for you and/or modify it so that it reproduces the problem, I can continue looking into it.

Dotnet-3598.zip

from realm-dotnet.

nirinchev avatar nirinchev commented on May 28, 2024 1

How is DeviceList populated and stored on the DataService object? Additionally, is there a reason why you're copying the objects from Realm into the observable collection? Why not just use the realm collection directly?

from realm-dotnet.

sync-by-unito avatar sync-by-unito commented on May 28, 2024

➤ PM Bot commented:

Jira ticket: RNET-1144

from realm-dotnet.

GoodWayDev avatar GoodWayDev commented on May 28, 2024

The DeviceList on the DataService is populated and stored by calling the AddDevice() from the DeviceManager class, which detects devices.
The reson why did not use IRealmCollection is because I don't want the ViewModel import Realm. But I've also tried with realm collection and the problem persists.

from realm-dotnet.

GoodWayDev avatar GoodWayDev commented on May 28, 2024

Thanks, I got it.
It only occurs after being packaged into an MSIX installer. During the development, build in either debug or release works fine. It's only when packaging it into an MSIX for the client that this issue arises.

from realm-dotnet.

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.