We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前 queryEvents() 的 locationId 是一個 string, 未來月曆應該是一次顯示多個地點的物資, 也可能在特殊頁面 (ex. admin page ) 有 filter 功能, 所以將 locationId 改為 Array 會是比較彈性的作法。 若沒給 locationId (null or []), 則是返回所有地點的事件
locationId
string
null
[]
The text was updated successfully, but these errors were encountered:
目前的作法如下:
Falsy
String
讓locationId改成Array增加彈性是個不錯的想法,或許有幾點可以討論:
Array
locationIds
undefined
還有另一種作法,是保持locationId為String,並且另開locationIds為Array,只是功能有點重複,變得有點多餘,不太建議。
Sorry, something went wrong.
我覺得保留 locationId 另開 locationIds 可以作為過度期的解決方案, 如果只有無家者小幫手的前端會用到這個參數, 等到前端更新再把 locationId 拿掉就好了。
No branches or pull requests
目前 queryEvents() 的
locationId
是一個string
,未來月曆應該是一次顯示多個地點的物資,
也可能在特殊頁面 (ex. admin page ) 有 filter 功能,
所以將
locationId
改為 Array 會是比較彈性的作法。若沒給
locationId
(null
or[]
),則是返回所有地點的事件
The text was updated successfully, but these errors were encountered: