Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible bug #1877

Open
EazyAhmed opened this issue Jan 16, 2025 · 1 comment
Open

possible bug #1877

EazyAhmed opened this issue Jan 16, 2025 · 1 comment

Comments

@EazyAhmed
Copy link

EazyAhmed commented Jan 16, 2025

I can create a record using write() and create(). Im using queyr().observe() to display the contents into my angular component. I have tested using fetch also with the same outcome. what happens is i can see the record being displayed after the create function creates the record. After i refresh the page and the app gets the data from the db. all the fields of the model are null (tested using console.log). but i can see my data in the _rawdata object
whats happening?

@EazyAhmed
Copy link
Author

i can add and see changes in the table being rendered, when i refresh the page., all the columns are visually blank but there are rows of data. here is console output. 'random name' once refreshed will become the same as the following object in page refresh. All fields null except _ raw has the data

Array(5) [ {…}, {…}, {…}, {…}, {…} ]
​
0: Object { _isEditing: false, _preparedState: null, name: "Random Name", … }
​​
__changes: null
​​
_isEditing: false
​​
_preparedState: null
​​
_raw: Object { id: "Vj6l1rEBujLx5hj7", _status: "created", created_at: 1737032621800, … }
​​
_subscribers: Array []
​​
collection: Object { changes: {…}, _subscribers: (1) […], database: {…}, … }
​​
createdAt: Date Thu Jan 16 2025 18:03:41 GMT+0500 (Pakistan Standard Time)
​​
name: "Random Name"
​​
store: undefined
​​
<prototype>: Object { name: Getter & Setter, createdAt: Getter & Setter, … }
​
1: Object { _isEditing: false, _preparedState: null, __changes: null, … }
​​
__changes: null
​​
_isEditing: false
​​
_preparedState: null
​​
_raw: Object { id: "asd", _status: "synced", created_at: 1732952280000, … }
​​
_subscribers: Array []
​​
collection: Object { changes: {…}, _subscribers: (1) […], database: {…}, … }
​​
createdAt: undefined
​​
name: undefined
​​
store: undefined
​​
<prototype>: Object { name: Getter & Setter, createdAt: Getter & Setter, … }
​
....
​
length: 5
​
<prototype>: Array []
vendors-page.component.ts:31:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant